If you are wondering how to change the domain name on WordPress, you are not alone. Many agencies and developers face this moment when rebranding, switching markets, or upgrading to a stronger domain. A domain name is not just a web address. It is the digital front door of your brand, affecting trust, visibility, and search rankings.
The challenge is that a WordPress change domain task can be tricky. Done incorrectly, it can lead to broken links, downtime, or a sharp drop in SEO performance. This is why agencies often hesitate to move a WordPress site to new domain environments, even when the change could bring long-term gains. The good news is that you can change your WordPress domain name safely if you follow a clear process.
In this guide, you will learn every method available to change the domain of a WordPress site without putting your client’s projects at risk.
Table of Contents
What is a Domain Name?
A domain name is the web address people type into their browser to reach your site, such as example.com. Behind the scenes, it maps to your server’s IP address. For WordPress users, the domain is stored in your site settings and database, which is why making changes requires careful handling.
When you change the domain of a WordPress site, you are essentially updating the identity of your website while making sure all old paths and URLs still point to the correct content. This is why the process is more than swapping one name for another; it’s about preserving usability, trust, and SEO.
Why Change Your Domain Name on WordPress?
There are several reasons agencies and businesses decide to move a WordPress site to a new domain or replace an existing one:
- Rebranding: A company changes its name, and the website needs to reflect the new identity.
- Professional upgrade: Switching from a long or confusing domain to something short and memorable.
- Domain extension change: Moving from .org to .com, or adding a country-specific TLD like .co.uk for local targeting.
- SEO benefits: Using a domain that includes relevant keywords to improve search rankings.
- Reputation reset: Dropping an old domain with penalties, spam history, or negative associations.
In short, if you’re wondering Can I change the domain name of a WordPress website then the answer is yes; you can change your WordPress domain. The key is doing it in a structured, careful way that avoids downtime and protects your SEO performance.
What are the Basic Preparations for Changing Your WordPress Domain
Before you jump into the process of how to change the domain name on WordPress, preparation is critical. Agencies and developers who skip these steps often face broken sites, downtime, and lost traffic. Think of this as a pre-flight checklist: if you complete it carefully, the actual switch becomes much smoother.
1. Back Up Your Entire Website
The first rule when you change your WordPress domain name is to protect your data. A backup should include:
- Database: Posts, pages, settings, and user data.
- Files: Themes, plugins, uploads, and configuration files.
You’ll typically need to install WordPress backup plugins to handle site backups manually. But if you’re using a cloud hosting provider like InstaWP, no additional plugins or tools are required.
InstaWP offers built-in backup features, allowing you to clone your site, schedule automatic backups, or even download a full local copy using the Local Mount feature.
If you’re moving a WordPress site to a new domain or host, it’s a good idea to download your backups locally beforehand. This gives you full control over the migration process and ensures nothing is lost in transit.
2. Secure Your SSL Certificate
When you change the domain of a WordPress site, the SSL certificate tied to the old domain will not automatically apply to the new one.
- Purchase or issue a new SSL certificate for the new domain.
- On managed platforms like InstaWP, SSL is generated automatically once you map the new domain.
- Without SSL, your site will show “Not Secure” warnings in browsers, hurting trust and SEO.
3. Plan Your Redirects Carefully
Redirects ensure that old URLs point to the new domain. Without them, every link shared on social media, bookmarked by users, or indexed by search engines will lead to 404 errors.
- Use 301 redirects (permanent) to transfer SEO authority.
- Map important pages like blogs, product pages, and landing pages one-to-one.
- Test redirects in a staging environment before going live.
This step is crucial for any WordPress change domain name project because it preserves rankings and keeps traffic flowing.
4. Notify Your Audience and Stakeholders
Changing the WordPress domain name is not just a technical update. It affects brand recognition and customer trust.
- Announce the change via email, blog posts, and social media.
- Reassure users that only the domain is changing; content and services remain the same.
- Agencies should also update clients, especially if they manage multiple WordPress sites.
5. Keep Both Domains Active During Transition
When you change a WordPress domain, it’s best to keep the old domain registered for at least 6–12 months. This ensures that:
- Redirects keep working.
- Returning visitors do not get lost.
- SEO authority transfers completely.
Canceling the old domain too early can cause permanent traffic loss.
6. Prepare Third-Party Integrations
A domain name touches many services beyond WordPress itself. Update or prepare to update:
- Google Analytics and Google Search Console.
- Email marketing platforms.
- Payment gateways and CRM systems.
- APIs or third-party plugins connected to your site.
Agencies moving a WordPress site to a new domain environment should make a list of all integrations ahead of time.
7. Test in a Staging or Sandbox Environment
Making changes directly on a live site is risky. That’s why the ideal way to change a WordPress domain is by first creating a WordPress sandbox site. With InstaWP, you can spin up a permanent WordPress sandbox for just $2/month; perfect for ongoing testing and client projects. If you only need a temporary environment, the free plan is your best bet. You won’t pay a single penny, and you’ll get a fully functional WordPress sandbox site valid for 48 hours.
This allows you to map a test domain, configure your DNS settings, test redirect rules, and verify everything works as expected, without putting your live site at risk.
8. Allow Time for DNS Propagation
When you point your new domain to the hosting server, DNS changes need to propagate across the Internet. This usually takes a few hours, but can take up to 48 hours. During this period, some users will see the old domain and others the new one. Plan the switch during low-traffic hours to minimize disruption.
How to Change the Domain in WordPress
There is no single way to handle a WordPress change domain name task. The right method depends on your hosting setup, technical skills, and whether you are moving a WordPress site to a new domain for a single project or managing multiple client websites.
In this guide, we will cover all the main approaches, starting with the easiest option for agencies using managed WordPress hosting like InstaWP, and then moving into traditional methods such as editing WordPress settings, wp-config.php, phpMyAdmin, WP-CLI, and plugins.

Method 1: Change Domain with Managed Hosting
If your stack runs on managed WordPress hosting, changing the WordPress domain name is going to be an easy and hassle-free journey.
You avoid risky database edits, you get automatic SSL, and you can test everything in staging first. You should opt for this method when:
- You want a WordPress change domain without manual migration headaches.
- You are moving a WordPress site to a new domain for a client and need zero-fuss SSL and DNS.
- You manage multiple sites and prefer a repeatable workflow.
- You need to change the WordPress domain on a staging site first, then go live.
In this section, we’re going to give you a quick overview of changing a WordPress domain name on some of the most popular managed WordPress hosts, such as InstaWP and GoDaddy.
How to Change Domain Names on WordPress Using InstaWP
InstaWP comes with a built-in map domain feature that enables you to use custom WordPress domain names.

You don’t have to get an extra add-on for this. But it’s only available for paid plan users. If you’re using a free InstaWP site plan, upgrade it now.
Do you know: You can change the domain name of all your WordPress staging sites, any specific staging site, WaaS sites, and live sites on InstaWP without any hassle.
Make sure you’ve access to your domain registrar or DNS provider. If you use Cloudflare, be ready to temporarily disable the proxy during mapping. If you use InstaWP CDN, Cloudflare is not required.
Here is how you can change the domain name on WordPress using InstaWP.
- Select the site in your InstaWP dashboard and click on Map Domain.

- Choose Map Domain and enter your new domain.

- Decide whether it is a Primary domain or an Alias.
- Copy the CNAME or A records provided by InstaWP and add them to your DNS settings.
- Confirm the mapping, and InstaWP automatically provisions SSL certificates.
- Head to your domain registrar’s dashboard (e.g., Cloudflare, Namecheap, GoDaddy) and locate the DNS Records or Manage DNS section. Click on Add Record to create a new CNAME entry.

7. Enter the CNAME details in the record form:
- Under Name (or Host), enter the subdomain you want to point (e.g., www or demo).
- Under Target (or Value), paste the InstaWP-provided hostname, something like your-site-name.instawp.xyz. Click Save to apply the changes.
Once added, the CNAME record will appear in your DNS record list.

Need more help? Follow our How to map a domain guide to configure your CNAME settings for InstaWP.
8. Now go back to your InstaWP dashboard. Navigate to the Map Domain section of your site settings.

Click the Map Domain button in the modal window to initiate the connection.
You’ll see a confirmation message appear in the top-right corner once your domain is successfully mapped.

If your agency spins up many sandboxes, use InstaWP’s White Label to set a team-wide suffix such as dev.brand.com. This makes every WordPress site predictable and on-brand.
How to Change the Domain on GoDaddy
If you’re managing a WordPress site hosted with GoDaddy and need to point it to a new domain, follow these steps to complete the switch smoothly.
1. Go to your GoDaddy product page and log in to your account.
2. On your My Products page:
- Locate Managed Hosting for WordPress
- Click Manage All
3: Open site settings for the site whose domain you want to change. Click on the menu icon (⋮) and choose Settings.
4. In the Domains section, click Add, then choose New primary domain

5. Select a domain from your GoDaddy account under Choose where to publish. If using a domain from another provider or GoDaddy account, click Use a different domain and enter the domain (e.g., example.com)
Note: GoDaddy handles the WWW CNAME by default, so www.example.com will redirect to example.com automatically.
6. Click Continue to confirm and initiate the change
7. Depending on where your domain is registered, take the following actions:
- If the domain is in the same GoDaddy account, DNS will be updated automatically
- If the domain is in another GoDaddy account:
- Log in to that account
- Update the DNS A record with the IP address provided by GoDaddy
- Log in to that account
- If the domain is with another registrar:
- Log in to your registrar
- Update the A record to point to the IP address GoDaddy provides
- Log in to your registrar
DNS updates can take up to 24–48 hours to propagate globally. During this time, your site might still load from the old domain.
Method 2: Change Domain in the WordPress Dashboard
This is the simplest way to handle how to change the domain name on WordPress if you are staying on the same host. It works well for small to medium sites and for teams that prefer a GUI over the command line.
Before you change anything in WordPress, make sure the DNS is correct.
- Log in to your registrar or DNS provider
- Update nameservers or create the A or CNAME records your host requires
- Wait for DNS to propagate
- Confirm the new domain resolves to your server over HTTPS
If you skip this step and save the new URL in WordPress first, you can lose access to the admin.
Now, follow the steps below to change the domain name on WordPress.
- Log in to wp-admin
- Go to Settings → General
- Update both fields: WordPress Address (URL) and Site Address (URL)
- Use the full URL with https:// and no trailing slash

Your site now prefers the new domain. If you are still logged in, proceed. If you get logged out, wait for DNS to finish and try again.
A WordPress change of domain name is not complete without HTTPS. So, you need to issue a new SSL for the new domain if your host does not do it automatically
Next, you need to set up 301 redirects from the old domain to the new domain, as redirects preserve SEO equity and help users who still visit the old address. You’ve two ways to do this:
Option A: .htaccess rule on Apache
Option B: Use a WordPress redirection plugin
Method 3: Change WordPress Domain via phpMyAdmin (Database Level)
Use phpMyAdmin when the dashboard method fails, you are locked out after a WordPress change domain, or you need precise control during moving a WordPress site to new domain. This method updates values at the source.
1. Open phpMyAdmin, select your database.
2. Click Export, choose Quick and SQL, then Go. This backup lets you roll back any change WordPress domain name safely.
3. In phpMyAdmin, click the table that holds options. It is usually wp_options, but your prefix may differ, for example, wp7a_options.In the search box, look for these two rows:
- option_name = siteurl
- option_name = home
4. Click Edit on siteurl, replace the value with your new full URL, for example, https://newdomain.com. Click Go to save. Repeat for home. This change restores access when a change WordPress domain attempts to lock you out.
Changing siteurl and home does not rewrite every link inside posts, pages, menus, widgets, or builder data. You must replace any hardcoded https://olddomain.com references.
Safer options, recommended
- Use Better Search Replace with serialization support
- Use WP-CLI search-replace if you have SSH
If you must use SQL, restrict the scope
UPDATE wp_posts
SET post_content = REPLACE(post_content, 'https://olddomain.com', 'https://newdomain.com');
Only run direct SQL on specific fields like post_content. Many plugins store serialized data, which SQL can corrupt. If you break serialization, widgets or theme settings may fail.
Method 4: Change Domain with WP-CLI
Using WP-CLI is the most reliable way to handle how to change the domain name on WordPress at scale. It updates core options and performs a safe search and replace that respects serialized data. Agencies use it when moving a WordPress site to a new domain or when a dashboard change has gone sideways.
Tip: Prove the workflow in an InstaWP WordPress sandbox first, then run it on production.
Start the process by connecting over SSH and moving to the site root.
ssh user@server
cd /path/to/wordpress
wp core is-installed
wp --infoConfirm you are in the right docroot and that WP-CLI is available.
Back up the database before any edits using wp db export before-domain-change.sql
Keep this file safe. It is your responsibility if anything breaks during the change WordPress domain name.
Confirm current URLs using the wp option get siteurl and the wp option get home commands. These should show the old domain you are replacing.
Update siteurl and home with:
wp option update siteurl 'https://newdomain.com'
wp option update home 'https://newdomain.com'This switches WordPress to the new host at the option level. If you are on Multisite, do this from the network site or pass –url= per site.
This replaces absolute references to the old host that live in posts, widgets, shortcodes, and plugin settings.
Dry run first:
wp search-replace 'https://olddomain.com' 'https://newdomain.com' \
--all-tables-with-prefix \
--skip-columns=guid \
--report-changed-only \
--dry-run
Execute for real:
wp search-replace 'https://olddomain.com' 'https://newdomain.com' \
--all-tables-with-prefix \
--skip-columns=guid \
--report-changed-only \
--precise \
--recurse-objects
h-prefix --skip-columns=guidNotes
- –skip-columns=guid avoids changing the GUID field, which should not be rewritten during a change domain WordPress task.
- Use –all-tables-with-prefix so plugin tables that share the prefix are included. If your plugins use different prefixes, use –all-tables.
Method 5: Use Plugins to Change Domain Name in WordPress
Plugins give you a GUI path for how to change the domain name on WordPress without touching the command line. This approach suits teams that want safety rails during a WordPress change of domain and helps when you are moving a WordPress site to a new domain on the same host or a new host.
Steps
- Back up your site in the current environment.
- Install and activate any of the best WordPress backup plugins on the old site.
- Create a package that includes the database and files, then download the package and installer.php.
- On the new host for the new domain, upload both files to the web root.
- Visit https://newdomain.com/installer.php, follow the wizard, and set the new database credentials.
- In the Duplicator installer, confirm the new domain and complete the install.
- Log in to the new site and verify pages, media, and permalinks.
- Keep the old site live until you confirm 301s and analytics.
In addition, you can also use updated URLs with WordPress Search Replace plugins. This works when the site has already been copied or the host stays the same, and you only need to rewrite absolute URLs.
SEO and Technical Best Practices After Changing WordPress Domain
You have completed the switch. Now make the new signals unmissable. After any WordPress change domain project, the goal is a single canonical host, clean redirects, correct sitemaps, and working analytics. This section explains what to do so humans, crawlers, and LLMs all read your site as stable and authoritative.
1. Point every visit from the old host to the new one with a permanent 301. Keep one primary domain only. If you used InstaWP mapping, set the new host as Primary and keep alternates as Alias. A simple Apache rule looks like this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteRule ^(.*)$ https://newdomain.com/$1 [R=301,L]2. Regenerate the XML sitemap on the new host and submit it in Google Search Console. Add the new property, then open the old property and use Change of Address to confirm the move.
Do the same in Bing. This speeds up reindexing after moving WordPress site to new domain and reduces volatility.
3. Check that each page prints a canonical for the new host. If your robots.txt contains absolute URLs, update the sitemap line:
User-agent: *
Allow: /
Sitemap: https://newdomain.com/sitemap_index.xmlIf you localize with hreflang, verify that every alternate now points to the new domain.
4. A WordPress change domain name in Settings does not rewrite every absolute URL stored in content, menus, widgets, or builder data. Use a serialization-safe tool such as Better Search Replace or WP-CLI search-replace to update https://olddomain.com to https://newdomain.com.
Re-save Permalinks to refresh rewrite rules. This step is what keeps images, styles, and embeds intact when you change domain in WordPress.
5. Confirm a valid SSL certificate for the new host. Load key pages and check for the browser padlock. If you see mixed content, replace any http:// asset URLs or re-save theme and plugin settings that store full paths. When everything is green, you can enable HSTS if your stack supports it:
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;6. Update Google Analytics, Tag Manager, ad pixels, email tools, payment gateways, CRM, and any embedded apps. Also, update social profiles and directory listings. Anywhere you pasted the old host need the new one. This keeps reporting clean after a change WordPress domain.
7. Keep the old domain registered and serving 301s for at least six to twelve months. Retiring it too early can leak traffic and link equity. This rule applies whether you change the domain of your WordPress site on the same server or you are moving a WordPress site to a new domain and host.
8. Purge cache at every layer. Clear your WordPress cache plugin, host cache, and CDN. Test from different regions to confirm the new host is served everywhere. Skipping this step is a common cause of stale results during a WordPress change domain rollout.
9. Crawl the site and look for 404s, long redirect chains, and blocked assets. Watch Search Console for coverage changes and spikes in errors. Track Core Web Vitals to catch layout shifts caused by missing files.
Visit top landing pages through the old domain and confirm a single 301 hop to the new URL. Test forms, checkout, login, and any webhooks. This is the quiet work that protects SEO after a change in WordPress domain name.
Conclusion
Changing domains is a branding decision and a technical project. If you plan it well, how to change domain name on WordPress becomes a clean cutover rather than a fire drill. You have multiple paths. InstaWP domain mapping gives agencies a safe default with instant SSL, Primary and Alias control, and an easy way to rehearse the entire workflow in staging.
The dashboard method works for simple swaps. phpMyAdmin and WP-CLI give you precision when you need source-level edits and serialization-safe replacements. The plugin route bundles backups, URL rewrites, and 301s in a familiar UI.
Ship the change with confidence!
Spin up a WordPress staging site in InstaWP, map a test domain, and run your replacements safely.
FAQs
Can you change your domain name on WordPress without losing SEO?
Yes. Use sitewide 301 redirects from the old host to the new host, submit a fresh sitemap in Google Search Console, and set a single canonical domain. Keep the old domain active for at least six to twelve months.
Can I change my WordPress domain without downtime?
Yes. Point DNS for the new host first, validate SSL, and rehearse in staging. InstaWP domain mapping lets you test the full path before you flip production, which reduces risk during a WordPress change domain.
What is the safest way to change WordPress domain name for client sites?
Use InstaWP domain mapping on a staging copy, confirm HTTPS and redirects, then repeat on Live. This avoids manual database edits and gives you Primary and Alias control for clean canonical signals.
How do I change domain of WordPress site on the same host?
Point DNS to the current server, update WordPress Address and Site Address in Settings, add 301s from the old host, run a serialization safe search and replace for absolute URLs, and refresh sitemaps and analytics.
What is the fastest method for agencies moving WordPress site to new domain?
WP-CLI. Update siteurl and home, then run wp search-replace to rewrite absolute URLs safely. Pair it with strict 301s and a new sitemap. Test the script in an InstaWP sandbox first.
Do I need to edit wp-config.php to change WordPress domain?
Not always. It helps when you get locked out after a settings change. Add WP_HOME and WP_SITEURL for a quick recovery, then complete the rest of the steps.
Should I use phpMyAdmin for a WordPress change domain task?
Only if you cannot reach wp-admin. Edit siteurl and home in the options table, then use a serialization safe tool to replace absolute URLs. Raw SQL can break serialized data.
Do I need to update Search Console after changing the WordPress domain name?
Yes. Add the new property, use Change of Address in the old property, and submit the new sitemap. Watch coverage and 404 reports for a few weeks.
Will changing the domain affect email or third-party services?
Yes, if they reference the old host. Update email routing, marketing platforms, payment gateways, CRM, ads pixels, and any embedded apps. This keeps reporting and transactions intact after a change WordPress domain name.
Does InstaWP mapping update URLs inside my content?
Mapping changes where the site answers and issues SSL. If your posts, menus, or builder data use absolute URLs, run a safe search and replace as part of your cutover. Test this step in an InstaWP sandbox first.
How long should I keep the old domain after moving the WordPress site to a new domain?
Keep it for at least six to twelve months with 301s in place. Update high-value backlinks you control. Retiring the old host too early can leak traffic and link equity.