How to Change Your WordPress Domain Name Without Losing SEO

How to Change Your WordPress Domain Name Without Losing SEO

Quick answer: To change your WordPress domain name without losing SEO, back up the site, point the new domain at your hosting with SSL, update the WordPress Address and Site Address, run a database search and replace from the old domain to the new one, add 301 redirects from every old URL to its matching new URL, then use Google Search Console’s Change of Address tool. Keep the redirects and the old domain for at least 12 months.

Key takeaways

  • Changing the domain in WordPress Settings alone is not enough. Old URLs stay in your database and do not redirect.
  • Page by page 301 redirects are what carry your rankings and backlinks to the new domain.
  • Google’s Change of Address tool speeds up the move, but only once redirects are live.
  • Expect a short dip in traffic. A drop that keeps growing after a month usually means a redirect problem.
  • Update everything outside WordPress too: Analytics, ads, Google Business Profile, email, payment webhooks and social profiles.
Change your WordPress domain name in four steps: back up the site, update URLs, add 301 redirects and tell Google with the Change of Address tool
The four core steps of a WordPress domain change

When does changing your domain make sense?

Common reasons include a rebrand or business name change, moving from a .com to a .com.au to target Australian customers, buying a shorter or more memorable domain, merging two businesses, or moving off a domain you do not fully control. If the old domain has years of backlinks and rankings, a domain change is still worth doing when the reason is strong, but it needs to be planned properly.

If you only want to change hosting and keep the same domain, that is a different job. See how to migrate a WordPress website without downtime instead.

Before you start: pre-move checklist

  • Register the new domain and make sure you have access to its DNS.
  • Keep the old domain registered and set to auto renew.
  • Export a list of every live URL, from your XML sitemap or a crawl tool, so you can test redirects later.
  • Note your top pages and top keywords in Google Search Console so you can compare after the move.
  • Check your hosting plan allows the new domain and can issue an SSL certificate for it.
  • Pick a quiet time of the week, not the day before a sale or campaign.

How to change your WordPress domain name step by step

Step 1: Back up the full site

Take a complete backup of your files and database, and download a copy off the server. Most hosts offer one click backups, or you can use a plugin such as UpdraftPlus. If anything goes wrong, you can restore and try again.

Step 2: Point the new domain at your hosting and add SSL

Add the new domain to your hosting account, then update its DNS A record (or nameservers) to point at your server. Once DNS resolves, issue an SSL certificate for both the www and non-www versions of the new domain. Need a hand with this part? See domain, hosting and DNS setup and SSL certificate setup.

Step 3: Update the WordPress Address and Site Address

In Settings, General, change the WordPress Address (URL) and Site Address (URL) to the new https address and save. WordPress will log you out, so log back in on the new domain. If those fields are greyed out, they are set in wp-config.php with WP_HOME and WP_SITEURL, and you update them there.

Step 4: Search and replace the old domain in the database

Your posts, image links, menus, widgets and page builder layouts all store the full old URL. Run a search and replace from the old domain to the new one across the whole database. Use WP-CLI or a plugin such as Better Search Replace, because a plain SQL find and replace breaks serialized data and can wipe theme and widget settings.

wp search-replace 'https://www.olddomain.com.au' 'https://www.newdomain.com.au' --all-tables --dry-run

Run it with --dry-run first to see how many changes it will make, then run it again without that flag. Clear every cache afterwards, including your caching plugin, host cache and CDN.

Step 5: Add 301 redirects from every old URL

This is the step that protects your SEO. Each old URL must redirect permanently to the same path on the new domain, so olddomain.com.au/services/ goes to newdomain.com.au/services/, not just to the homepage. On Apache or LiteSpeed hosting, the old domain’s .htaccess file can do this in a few lines:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com\.au$ [NC]
RewriteRule ^(.*)$ https://www.newdomain.com.au/$1 [R=301,L]

On Nginx, Cloudflare or other setups, use a server rule or a Cloudflare redirect rule that keeps the path. Then test a sample of old URLs from your list, including blog posts, product pages and images, and check each one returns a single 301 straight to the right page with no redirect chains.

Step 6: Tell Google with Search Console

Add and verify the new domain in Google Search Console as a Domain property, submit the new XML sitemap, then open the old property and go to Settings, Change of Address. Google checks your redirects before accepting the move, so only do this once Step 5 is live. If Search Console is not set up yet, start with the Google Analytics and Search Console setup guide.

Step 7: Update everything outside WordPress

  • Google Analytics: update the data stream URL and any filters.
  • Google Ads and Meta ads: update final URLs and the domain on your ad accounts and Meta Pixel.
  • Google Business Profile: change the website link.
  • Google Merchant Center: claim and verify the new domain if you sell products.
  • Payment gateways: update Stripe, PayPal and Afterpay webhook URLs and allowed domains.
  • Email: update form notification addresses, and if email is moving too, set up SPF, DKIM and DMARC on the new domain.
  • Social profiles, directories, email signatures and printed material.
  • Backlinks: ask your most valuable linking sites to update their link to the new domain.

For the email side, see SPF, DKIM and DMARC for small business.

Checklist of what to update when changing a WordPress domain: WordPress settings, database URLs, SSL, 301 redirects, Search Console and tools outside WordPress, with what breaks if you skip each
What to update when you change domains, and what breaks if you skip it

Common mistakes that lose traffic

  • Redirecting every old page to the homepage. Google treats these like soft 404s, so the rankings of inner pages are lost.
  • Skipping the database search and replace. Pages load, but images, internal links and buttons still point at the old domain.
  • Using 302 redirects. A temporary redirect tells Google the move is not permanent.
  • Letting the old domain expire. Every redirect stops working, and someone else can register the domain.
  • Forgetting internal links and canonicals. Leftover old URLs create redirect hops and mixed signals.
  • Changing domain, design and URL structure all at once. If traffic drops, you cannot tell which change caused it.

How long does it take to recover?

With clean redirects, most small business sites see Google swap the old URLs for the new ones within a couple of weeks, and rankings settle within one to three months. The Change of Address move notice runs for 180 days. Keep watching the Pages and Performance reports in Search Console for both the old and new properties during that time.

Timeline after a WordPress domain change: redirects and Change of Address on day 1, recrawling in weeks 1 to 2, rankings settle in months 1 to 3, 180 day move notice, redirects kept 12 months or more
What to expect in the months after a domain change

A month after the move, run a crawl of the new domain to catch leftover old links, redirect chains and 404s. The technical SEO audit checklist covers what to check, or try the free website health check.

Need help changing your domain?

My WordPress Domain Name Change service handles the whole move for a fixed A$249: the database update, SSL, 301 redirects from every old URL, Search Console Change of Address, sitemap submission and checks on email and forms. It is delivered online for businesses in Australia, New Zealand, the United States and Canada.

Related services: WordPress subfolder to root move, domain, hosting and DNS setup and SSL certificate setup. Related reading: choosing website hosting for a small business.

Related reading: how to fix duplicate content with canonical tags.

Frequently asked questions

Will changing my WordPress domain hurt my SEO?

A domain change causes a short dip for most sites, usually for a few weeks. If every old URL 301 redirects to its matching new URL and you use the Change of Address tool in Google Search Console, rankings normally carry across to the new domain.

How long should I keep 301 redirects after changing domains?

Keep them for at least 12 months, and ideally for good. Google asks for at least 180 days in its Change of Address guidance and generally at least one year in its site move guidance. Keep renewing the old domain so nobody else can register it.

Can I just change the WordPress Address and Site Address in Settings?

That only updates two settings. Links, images and page builder data stored in your database still point to the old domain, and the old URLs will not redirect. You also need a database search and replace and 301 redirects.

Do I need a new SSL certificate for the new domain?

Yes. An SSL certificate covers specific domain names, so the new domain needs its own certificate before you switch WordPress to it. Most hosts issue a free Let’s Encrypt certificate once the domain points to the server.

Do I need to use the Change of Address tool in Search Console?

Yes for a move to a different domain, such as example.com.au to newexample.com.au. It is not used for HTTP to HTTPS moves or for switching between www and non-www on the same domain.

Will my email stop working when I change domains?

Email runs on your domain’s DNS records, not on WordPress. If you are moving email to the new domain too, set up the mailboxes and MX, SPF, DKIM and DMARC records first, and update the From address used by your website forms.

How much does it cost to change a WordPress domain name?

The new domain costs a small yearly fee from your registrar. If you want it done for you, my WordPress Domain Name Change service is a fixed A$249 with a 2 business day turnaround.

Back to blog
Get in touch

Have a project in mind?

Tell me about your idea. I'll get back to you with honest advice and a clear quote.

  • Talk directly to the developer
  • Clear quotes before any work starts
  • Sydney CBD based
Contact us