Guide · Website migration

How to Change Your Domain Without Losing SEO

By Carmelo Cutrone · Updated

The short version

  • Rankings move with you if every old URL points to its equivalent. One 301 redirect per page, not everything to the home page.
  • Search Console has a tool for this. Change of Address tells Google your site has moved. Use it after the redirects are live.
  • A temporary dip is normal. Google reprocesses a medium-sized site in a few weeks, a large one takes longer.
  • Never let the old domain expire. The redirects live there: if the domain lapses, they disappear with it.
  • Change one thing at a time. A new domain and a new site on the same day make it impossible to tell what caused a drop.

For the URL inventory and the redirect map, use the free website migration plan template: it flags duplicates, chains and missing targets on its own.

Contents

Contents

  1. Before you start: what actually changes
  2. The steps
  3. What to update, and where
  4. The Change of Address tool in Search Console
  5. How long Google takes
  6. How long to keep the redirects and the old domain
  7. If your site runs on WordPress
  8. If your site runs on Shopify
  9. The mistakes that cost rankings
  10. FAQ
01

Before you start: what actually changes

Changing your domain means moving the whole site from one address to another: from oldbrand.com to newbrand.com, from a .co.uk to a .com, or to a new name after a rebrand. To Google it is a new site until it understands that the old one has moved there. The SEO work is about making that obvious, page by page.

A domain change is not the same as transferring your domain to another registrar, for example from GoDaddy to Namecheap. In that case the address stays the same and your rankings are untouched: only the company that bills the renewal changes.

The simplest case is when only the domain changes and every path stays the same: oldbrand.com/contact/ becomes newbrand.com/contact/. If you also change the URL structure, the platform or the content at the same time, the risks add up. If you can, split the work: the domain first, the rest a few weeks later.

02

The steps

  1. Save your baseline. Export the last 3 months of queries and pages from Search Console, and landing pages from your analytics. After the move, this is how you will know if you are losing anything.

  2. Build a URL inventory. Collect every URL of the old domain from sitemaps, a crawl, Search Console and pages with backlinks. A crawl alone misses orphan pages that still get visits or links.

  3. Set up the new domain and verify it in Search Console. Add the new domain as a Domain property. Verify the old one too, with all its variants: with and without www, http and https.

  4. Prepare the redirect map. Every old URL goes to its equivalent on the new domain, with a server-side 301. If the paths do not change, one rule that keeps the path is enough. If they change, you need a row-by-row map.

  5. Update everything inside the site that points to the old domain. Internal links, canonicals, hreflang, structured data, images, sitemaps and robots.txt. A site that keeps linking to the old domain sends every internal click through a redirect.

  6. On launch day, switch on the redirects and tell Google. Spot-check that old URLs return a 301 to the right page. Then use Change of Address in the old domain's property, and submit the new sitemap in the new one.

  7. Update everything outside the site. Google Business Profile, social profiles, email signatures, Google Ads, Merchant Center, product feeds and analytics. Then ask the sites that link to you most to update their links.

  8. Monitor for at least 30 days. Compare clicks, impressions and indexed pages with your baseline. In the Pages report, indexed URLs should go down in the old property and up in the new one.

03

What to update, and where

WhatWhereWhen
301 redirectsServer or hosting of the old domainLaunch day
Change of AddressSearch Console, old domain propertyRight after the redirects
SitemapSearch Console, new domain propertyLaunch day
Site URLCMS settingsLaunch day
Internal links, canonicals, hreflangContent, theme, SEO pluginBefore launch, on staging
Property and data streamGoogle AnalyticsLaunch day
Final URLs of your adsGoogle AdsLaunch day
Website and product feedMerchant CenterLaunch day
Business websiteGoogle Business ProfileLaunch day
Top backlinksEmail to the sites that link to youIn the following weeks
04

The Change of Address tool in Search Console

You find it in the settings of the old domain's property. It only works if you are a verified owner of both properties with the same Google account, and only for domain-level moves.

It is not needed, and should not be used, to move from http to https or from www to non-www on the same domain: redirects and canonicals are enough for those. It does not work for moving a subfolder either.

Before it accepts the request, the tool checks that the old home page returns a 301 to the new domain. The move notice stays visible in Search Console for 180 days.

05

How long Google takes

Rankings can fluctuate for a while as Google reprocesses the site. A medium-sized site usually needs a few weeks before the new URLs replace the old ones, a large one longer. An up-to-date sitemap speeds things up.

A small dip in the first weeks is normal. A drop that is still there after a month, or that hits specific pages, usually has a technical cause: wrong redirects, pages sent to the home page, canonicals still pointing to the old domain, or a noindex left over from staging. A 301 redirect on its own does not make links lose value.

06

How long to keep the redirects and the old domain

Google asks you to keep the redirects for at least 180 days for the Change of Address tool, and in general for at least a year, longer if the URLs still get traffic. My advice is simpler: keep the old domain renewed forever. It costs a few dollars a year, it keeps the backlinks nobody will ever update, and it stops someone else from buying it and riding on your old reputation.

07

If your site runs on WordPress

On WordPress a domain change touches the database, because URLs are stored inside posts, menus, widgets and plugin settings.

  1. Change the site URLs in Settings › General: WordPress Address (URL) and Site Address (URL). If they are greyed out, they are set in wp-config.php.

  2. Replace the old domain in the database. With WP-CLI, after a backup:

    wp search-replace 'https://www.olddomain.com' 'https://www.newdomain.com' --skip-columns=guid --all-tables

    Or use a plugin such as Better Search Replace. Do a dry run first (with WP-CLI, add --dry-run) and check how many rows will change.

  3. If you use Elementor, go to Elementor › Tools › Replace URL, then regenerate the CSS files from the General tab of the same page.

  4. Put the redirect on the old domain. On an Apache host, in the old domain's .htaccess:

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

    The rule keeps the path: every page goes to its twin, not to the home page.

  5. Check your SEO plugin. Sitemaps, canonicals and structured data must show the new domain. Clear the site cache and the CDN cache.

08

If your site runs on Shopify

On Shopify the change is simpler, because the paths stay the same and the platform handles redirects between domains. Connect the new domain, set it as the primary domain and keep the old one connected: Shopify redirects connected domains to the primary one, page by page.

The rest is on you: Change of Address in Search Console, the new domain's sitemap, Merchant Center, feeds, ads and external links. If you are also moving to Shopify from another platform at the same time, it is a full migration: every path changes and you need a real redirect map. The Shopify redirects guide explains how to import it.

09

The mistakes that cost rankings

Sending everything to the home page. It is the quickest redirect to set up and the most expensive one. Google treats those redirects as missing pages, and the rankings of your inner pages are lost.

Letting the old domain expire. The redirects go with it, and so does the value of the backlinks that pointed there.

Changing domain, design and structure on the same day. If traffic drops, you no longer know which of the three caused it, and fixing it becomes guesswork.

Forgetting a variant. The redirect works on https://www but not on http:// or without www. Those variants often carry old backlinks.

Pushing the staging block to production. A noindex or a robots.txt that blocks everything, left over from staging, empties the index in a few days.

Skipping Change of Address. Redirects work on their own, but the tool makes the signal explicit and speeds up the move.

I have worked on every kind of domain change, for different clients: rebrands, moves from a country domain to a .com, two sites merged into one. There is always a dip in the first days. If the work is done properly it is temporary, and after a week or two the site picks up again. The most expensive mistake is treating a domain change as a purely technical job and forgetting SEO: the rankings are lost and you start again from zero, like a brand-new site.

Carmelo Cutrone, SEO Specialist

10

FAQ

Not necessarily. If every old URL has a 301 redirect to its equivalent and the site stays the same, rankings transfer. Some fluctuation in the first weeks is normal.
In the moves I work on, when the job is done properly, the site picks up again after a week or two. Google talks about a few weeks for a medium-sized site and longer for a large one. If the drop has not recovered after a month, look for a technical cause in the redirects, the canonicals or indexing.
Not for SEO alone. A domain name is not a ranking boost on its own: keywords in the domain do not make a site rank. Change it for brand or business reasons, and use the steps on this page to keep the rankings you already have.
Yes, with the same steps. If your audience stays in the same country, set the site's language and target market clearly and watch your local queries: a .com does not carry the geographic signal that a country domain does.
They keep working as long as the redirects stay active, and the 301 passes on their value. It is still worth asking the most important sites to update their links.
It is recommended for every domain change. It is not needed for moving from http to https or from www to non-www, and it does not work for moving a subfolder.
Google asks for at least 180 days of redirects for the tool, and in general at least a year. I recommend renewing it forever: it costs little and protects your backlinks and your reputation.

Want to change your domain without the risk?

Rankono builds the URL inventory and the redirect map, checks the site before launch, follows the switch and monitors the 30 days after. The SEO migration plan starts at €990 for up to 500 URLs, at a fixed price agreed before work starts. Everything in writing, with replies within 12 business hours (CET).

See SEO migration services

Written by

Carmelo Cutrone

SEO Specialist, Rankono