Technical SEO

How do you migrate a website without losing rankings?

A phase by phase flow for redirects, crawling, tracking and post launch checks, built on what Google’s own site move documentation says.

Flow diagram of a website migration moving from planning and URL mapping to redirects, testing, launch and post launch monitoring

You protect rankings in a website migration by mapping every important old URL to its closest new equivalent, serving server side permanent redirects (301 or 308) on launch day, and keeping those redirects live for at least a year. Then you verify the result with a crawl, Search Console, server logs and analytics until the new URLs have replaced the old ones in Google’s index.

No checklist can promise zero movement. Google’s own guidance says to expect temporary ranking fluctuation while it recrawls and reindexes a moved site, and that a medium sized site can take a few weeks or more for the new URLs to show up in place of the old ones. What a good plan does is keep that fluctuation short and stop it from turning into a permanent loss.

Key takeaways

  • Map before you move: build an old to new URL list from sitemaps, analytics, server logs and the Search Console links report, including images and PDFs.
  • Use permanent server side redirects: Google recommends 301 or 308, pointing straight to the final URL with no chains.
  • Change one thing at a time: Google advises against combining a domain move, a CMS switch and a redesign in one launch.
  • Change of Address is only for domain moves: not for HTTP to HTTPS, www to non-www, or path changes on the same domain.
  • Keep redirects at least a year: Google’s site move guide says generally at least 1 year; the Change of Address tool asks for at least 180 days.
  • Expect a temporary dip: Google describes ranking fluctuation during recrawling as normal; your job is to spot real errors fast.

What counts as a website migration?

For search purposes, a migration is any change that alters the URLs Google has indexed. Google’s site move guide gives three typical examples: moving from HTTP to HTTPS, changing domain name (or merging several domains or hostnames), and changing URL paths, such as turning page.php?id=1 into /widget.

If the reason for the migration is a new URL scheme, settle the structure before you map redirects. Our guide to designing an SEO friendly URL structure covers the patterns and when a URL change is worth the risk.

A redesign or CMS replatform often triggers a migration by accident, because the new system generates different URLs. This checklist follows Google’s order: prepare the new site, map URLs, turn on redirects, then monitor old and new URLs.

What should you decide before you start?

Three planning decisions do more to protect rankings than any single technical setting.

Change one thing at a time

Google advises planning changes one after another rather than all together. Its own example: if you want a new domain, a new CMS and a new layout, do them separately, for example move the domain first and change the layout afterwards. When everything changes at once and traffic drops, you cannot tell which change caused it. The Change of Address documentation adds that combining a move with a redesign of content and URL structure will “probably” cause some traffic loss, because Google may need to relearn and reassess individual pages.

Pick the timing

Google suggests moving during a recurring traffic dip. Fewer people hit early errors, and more server capacity is free for Googlebot, which crawls a moved site more heavily than usual for a while.

All at once or in sections

For small and medium sites, Google recommends moving all URLs at the same time, which helps its systems detect the move faster. Large sites can move one section at a time to make monitoring easier.

If you are unsure how healthy the current site is, run a technical SEO audit first. Migrating crawl errors and duplicate URLs only moves the problems to a new address.

If the migration includes a new domain, choose it carefully, because you will not want to move twice. Our guide on how to choose a domain name covers extensions, keywords and history checks.

How do you build the URL map?

The URL map is a spreadsheet (or database) with one row per old URL and a column for its new destination. It drives the redirects, the internal link updates, the new sitemap and every post launch check, so it deserves the most time.

Find the old URLs

Google lists several places to collect them, starting with your important URLs:

For a straight domain change with identical paths, Google notes that a wildcard server side redirect may be enough. Any path change needs explicit mapping.

Map each URL to its closest equivalent

Each old URL should point to the new page that serves the same intent. Content you are not moving should return a 404 or 410, as Google recommends. Sending hundreds of unrelated URLs to the homepage does not preserve relevance.

Update everything that references a URL

Before launch, give each new URL a self referencing rel="canonical" tag (see our guide to canonical tags), update hreflang annotations, and change internal links to new URLs so your site does not rely on redirects. Our internal linking guide helps you prioritize. Save a new XML sitemap and a list of sites linking to your old URLs.

Which redirects should you use?

Google’s redirects documentation divides redirects into permanent and temporary. Permanent redirects tell Google to show the new target in search results; temporary ones tell it to keep showing the source page.

On link value, Google is direct: 301 and other permanent redirects don’t cause a loss in PageRank. That removes a common worry, but it only holds when the redirect exists, is permanent, and points to a live, relevant page.

Check your site before and after the move

Run a free Klepha scan to capture a baseline of your search and AI visibility now, then compare it after launch to spot pages that did not carry over.

Run my free scan

What should you crawl before launch?

Crawl the new site on staging with a desktop crawler before you switch anything on. Google’s own guide points to Screaming Frog as one option for checking that redirects work as expected. Look for:

Then run your full list of old URLs through a crawler in list mode. Each should return a single 301 or 308 hop to the mapped destination, which should return 200.

Finally, verify old and new sites (all www, non-www, HTTP and HTTPS variants) in Search Console, keep your verification method working on the new site, and re-upload any disavow file to the new property.

How do you keep tracking intact?

Tracking is where migrations most often fail quietly: rankings may be fine, but nobody can prove it because analytics broke on launch day.

What happens on launch day?

Google’s sequence for starting the move is short:

  1. Turn on the redirects in your server configuration or CMS.
  2. Check that canonical tags on the new site use new URLs, and remove any temporary no-index rules and robots.txt blocks.
  3. Test redirects, using the URL Inspection tool for individual URLs and scripts or crawlers for large lists.
  4. If you changed domain or subdomain, submit a Change of Address in Search Console for the old site.
  5. Submit the new sitemap in Search Console.

When to use the Change of Address tool

Google’s Change of Address documentation limits the tool to moves from one domain or subdomain to another, such as example.com to example.org. Do not use it for HTTP to HTTPS, for moving pages between paths on the same site, for switching between www and non-www, or for a hosting change with no visible URL change.

You must own both properties under the same Google account, the property must be at domain level, and the tool does not move subdomains below the one you specify, including www, so Google says to run it for every subdomain variant of the old domain. For 180 days Google emphasizes crawling the new site and forwards signals to it.

Update links you control

Straight after launch, update internal links, high value external links, social profile links and ad landing pages.

What should you check after launch?

Google frames the move as complete only when Googlebot has visited every URL on both old and new sites at least once, and it happens per URL. There is no fixed crawl schedule. In Google’s words, a small to medium site can take a few weeks for most pages to move, and larger sites take longer.

First 48 hours

Weeks 1 to 8

Months 2 to 12 and beyond

Keep redirects live. Google’s site move guide says generally at least 1 year, and the Change of Address page sets a floor of 180 days and recommends keeping the old domain registered for at least a year so nobody else can misuse it. Rank and AI visibility tracking through Klepha’s blog ranking tools can show whether recovered pages hold their positions.

The full migration checklist

Owner names vary by team. The table shows who typically owns each task and the tool most teams use for it.

PhaseTaskOwner or tool
PlanDecide scope and order; avoid combining domain, CMS and redesign changesSEO lead, project owner
PlanPick a lower traffic window; warn hosting about extra crawl loadProject owner, hosting provider
PlanExport baseline rankings, Search Console performance and analyticsSearch Console, analytics, rank tracker
MapCollect old URLs, including images, PDFs, JS and CSSSitemaps, server logs, CMS export, crawler
MapMap each old URL to its closest new equivalent; mark dropped URLs for 404 or 410SEO lead, content owner (spreadsheet)
BuildSelf referencing canonicals, updated hreflang, updated internal linksDevelopers, CMS
BuildWrite 301 or 308 rules with no chains; update legacy redirectsDevelopers (server config or CMS)
BuildVerify all old and new properties and variants; carry over verification and disavowSearch Console
TestCrawl staging; test redirect list; check titles, content and structured dataCrawler, URL Inspection tool
TestConfirm analytics tags, conversions and UTM pass throughAnalytics, tag manager
LaunchTurn on redirects; remove no-index rules and robots.txt blocksDevelopers
LaunchSubmit Change of Address (domain moves only) and the new sitemapSearch Console
LaunchUpdate internal, profile, ad and high value external linksMarketing, PR, paid media
MonitorCheck logs, sitemaps, page indexing and performance against baselineServer logs, Search Console, analytics
MaintainKeep redirects at least 1 year; keep the old domain registeredDevelopers, domain owner

Which mistakes cause lasting losses?

Google’s troubleshooting table lists leftover no-index or robots.txt blocks from staging, redirects to non-existent URLs, other crawl errors, insufficient server capacity, and sitemaps not updated with new URLs. Add two of our own: temporary 302 redirects left in place for a permanent move, and redirects removed too early during a later cleanup.

If you would rather have a second pair of eyes on the URL map and launch plan, see how we approach technical projects on our expertise page, or browse past results in our case studies.

Sources

Frequently asked questions

Will a website migration hurt my rankings?

It can cause a temporary dip. Google says to expect ranking fluctuation while it recrawls and reindexes a moved site, and that medium sized sites can take a few weeks or more for new URLs to replace old ones. Accurate permanent redirects and a clean new site help keep that fluctuation temporary, but no process can promise zero movement.

Should I use 301 or 302 redirects for a site migration?

Use permanent redirects. Google recommends server side 301 or 308 redirects for site moves. 302, 303 and 307 are temporary, so Google keeps treating the old URL as the one to show in search results.

Do 301 redirects lose PageRank?

No. Google states that 301 and other permanent redirects do not cause a loss in PageRank. The redirect still needs to point directly to a relevant, live page without long chains.

When should I use the Change of Address tool in Search Console?

Only when moving from one domain or subdomain to another, such as example.com to example.org. Google says not to use it for HTTP to HTTPS moves, path changes within the same site, www to non-www switches, or hosting changes with no URL change.

How long should I keep redirects after a migration?

Google's site move guide says generally at least one year, and suggests keeping them indefinitely for users. The Change of Address documentation sets a minimum of 180 days, longer if Google Search still sends traffic to the old URLs.

How long does a site migration take to settle in Google?

Google says a small to medium sized website can take a few weeks for most pages to move, and larger sites take longer. The speed depends mainly on the number of URLs and how fast your server responds.

Garry Charter

SEO Specialist · Klepha

Twelve years in search, covering technical SEO, keyword research and, since generative search arrived, answer engine and generative engine optimization. Writes Klepha's guides on ranking in Google and being cited by AI assistants.