How to Migrate a Website Without Losing Your Rankings
Traffic does not fall after a relaunch because Google needs time to adjust. It falls because URLs moved and nothing told Google where they went. The sequence that prevents it, in the order it has to happen.

There is a conversation that happens about five weeks after a relaunch. The new site looks better than the old one, everybody signed it off, and organic traffic is down by a third. Somebody says Google needs time to adjust.
Google does not need time to adjust. What has usually happened is that a few hundred URLs that used to return a page now return a 404, and nothing anywhere tells Google — or anyone who linked to them — where those pages went. Every ranking those URLs held was attached to the address, and the address stopped existing.
The good news is that this is one of the few SEO problems that is almost entirely preventable, because it is mechanical rather than competitive. The bad news is that the step which prevents it has to happen before the old site comes down, and by the time anyone notices the drop that step is no longer available.
Here is the sequence, in the order it has to run.
What Actually Causes the Drop
Worth naming the real causes first, because the fix for each one is different and "we lost traffic in the migration" is not a diagnosis.
- URLs changed and nothing mapped them. The single biggest cause. A new CMS imposes a new path structure, the old addresses 404, and the equity attached to them has nowhere to go.
- Redirects exist but hop more than once. Old URL redirects to an interim URL which redirects to the final one. It works for a human and loses signal at every hop, especially when one of the hops is a 302.
- The new site is thinner. A redesign that cut a 1,400-word page to a 300-word page with better photography removed the thing that was ranking. The URL survived; the content did not.
- Internal links still point at the old URLs. The redirects catch visitors, so nobody notices, while every internal link on the site now runs through a redirect instead of landing directly.
- A staging directive shipped to production. A noindex tag or a blanket robots.txt disallow that protected the build site, left in place on launch. This one removes the whole site rather than a few pages.
- The domain changed and nobody told Search Console. Possible to survive without it, considerably faster with it.
Step 1 — Inventory the Old Site Before You Touch Anything
This is the irreplaceable step. Everything else can be fixed later; this one cannot, because once the old site is gone you cannot crawl it. If you read only one section of this article, read this one.
Three exports, all taken while the old site is still live:
- A full crawl of every URL, with its status code, title, H1, word count and canonical. This is your definition of what exists. Anything not on this list is going to be discovered the hard way.
- Search Console → Performance, exported by page, over the longest range available. This tells you which URLs earn clicks and impressions — which is not the same as which pages the business thinks are important, and the difference is usually surprising.
- Search Console → Links, exported. This tells you which URLs other sites point at. These are the URLs where a missing redirect costs the most, because a broken inbound link is a loss you cannot fix from your own server.
Keep all three. They are the before picture, and without one there is no way to tell afterwards whether a page lost traffic or never had any.
Step 2 — Map Every URL One to One
A spreadsheet with three columns: old URL, new URL, and the reason. The reason column is the one people skip and the one that saves the argument six months later.
Two rules make the difference between a map and a gesture.
Map to the closest equivalent page, never to the homepage. A bulk redirect of 400 old URLs to the homepage is the most common shortcut in this work and Google treats that destination as a soft 404 — it can see that the page it was sent to is not a replacement for the page that was requested. A visitor who clicked a search result for one specific service and landed on a homepage carousel has the same reaction, which is to leave.
Decide deliberately what should die. Not every URL deserves a destination. A discontinued product, an event from 2019, a tag archive that was never useful — these can return a 410 Gone, which tells Google the removal was intentional rather than a mistake. Redirecting them somewhere irrelevant to keep the map tidy is worse than removing them honestly.
Sort the map by the click and impression figures from step 1 and work top down. If the budget runs out, it runs out on the URLs that were earning nothing.
Step 3 — Redirects: 301, Server-Side, One Hop
Three properties, and all three matter.
301, not 302. A 302 says the move is temporary, and a temporary move is a reason to keep the old URL indexed. Google's documentation on redirects sets out how each type is treated; a permanent move wants the permanent signal.
Server-side, not JavaScript. A redirect performed by a script in the browser requires the page to load and the script to run before anything is told where to go. The HTTP-level redirect happens before a byte of the page is sent.
One hop. If the site already had redirects from a previous migration, the new map has to account for them, or you end up with /old-page/ → /interim-page/ → /new-page/. Chains are also how a redirect loop gets built by accident, and a loop takes a page out of the index entirely.
A detail worth checking on any platform: trailing slashes, uppercase paths and query strings are separate URLs as far as a server is concerned. A rule that catches /services/seo will not necessarily catch /services/seo/ or /Services/SEO/.
Our own site keeps its redirect table in one configuration file and generates the application's copy from it, with a build step that fails the deploy if the two ever disagree in either direction. That is more machinery than a small site needs, but the principle is worth stealing: the redirect map should live in one place, and something other than a person should be checking that it still matches reality.
Step 4 — Keep the Build Site Out of the Index
A staging site that gets indexed competes with the live one, and the usual fix for that is the thing that causes the famous disaster: a noindex tag added to staging and never removed at launch.
Use HTTP authentication on the staging environment instead. A password keeps crawlers out without leaving a directive anywhere that could survive a deployment, and there is nothing to remember to undo. If noindex is used anyway, it belongs on a written launch checklist rather than in somebody's memory — Google's documentation on blocking indexing covers the ways it can be applied and therefore the places to check for it afterwards.
A robots.txt disallow is the wrong tool here for a subtle reason: it prevents crawling, not indexing. A URL that is blocked from crawling can still appear in results without a snippet, and a blocked URL cannot be read to discover the noindex on it either.
Step 5 — Launch Hour
The first sixty minutes are worth more than the first week, because an error caught now is a non-event and the same error caught on Friday is a recovery project.
- Request your top twenty URLs from step 1 and watch the status codes. Each should be a 200 or a single 301 to a 200. Anything that is a 404, a 302, or two hops goes on the fix list immediately.
- View source on three live pages and search for noindex. Do it on rendered source, not just the template.
- Fetch robots.txt and read it. Not the staging one. The live one.
- Submit the new sitemap and confirm it returns 200, lists the new URLs, and does not list the old ones.
- Confirm analytics and conversion tags fire. A new site frequently ships without them, and a month of missing data cannot be backfilled.
- Spot-check the mobile rendering of the top five templates. Not for beauty — for whether the content is actually present.
If the domain itself changed rather than just the paths, this is also when you use the Change of Address tool in Search Console. It does not replace the redirects; it tells Google to expect what the redirects are already saying.
Step 6 — The First Four Weeks
Some movement is normal. Google has to recrawl every URL it knew about, follow each redirect, and transfer what it understood about the old address to the new one, and it does that at whatever rate it crawls your site rather than all at once. Expect positions to wobble and impressions to be uneven for a few weeks.
What is not normal, and what to watch for specifically:
- A growing "Not found (404)" count in Search Console's Page indexing report. Each one is a URL you did not map. Export the list and add them to the redirect table.
- "Page with redirect" on URLs that should be live. Something in the new site is redirecting a page you meant to keep.
- "Alternate page with proper canonical tag" on pages that should rank. A canonical pointing at the wrong URL, usually a leftover from the build.
- A clean drop on one template rather than across the site. That is a content or rendering problem on that template, not a migration-wide one — much easier to fix once you have localised it.
- No recovery trend at all after four weeks. Fluctuation that trends back up is the expected shape. A flat line at the lower level means something is still broken.
Compare against the step 1 exports rather than against last month, and compare page by page. A site-wide figure hides the case where ten pages recovered fully and three never came back, which is the case you actually need to act on.
What a Platform Change Adds
Moving between platforms is the same six steps with one extra constraint: the new platform may not let you keep your URL structure at all.
Shopify imposes /products/, /collections/ and /pages/ prefixes, so a store moving onto it cannot preserve arbitrary paths and will be redirecting essentially its whole catalog — which makes the map in step 2 the entire project rather than a task within it. That is the shape of a Shopify migration, and the same applies in reverse when leaving.
WordPress is more flexible and fails differently. Permalink settings can usually reproduce the old structure, but plugin-generated URLs — faceted shop filters, event calendars, member areas — often cannot, and those are exactly the URLs nobody inventories because nobody thinks of them as pages. A WordPress migration lives or dies on finding those before launch, and an ecommerce migration adds variant and out-of-stock URL handling on top.
One rule covers all of them. Any change that moves a URL is a migration, whatever it is called internally. A redesign, a replatform, a domain change, an HTTP-to-HTTPS move, a blog moving from a subdomain into a subfolder, even a tidy-up of category paths — all of them need the six steps. Calling it a refresh does not exempt it.
The Short Version
- Crawl the old site and export Search Console performance and links before anything is built. This cannot be done later.
- Map every URL one to one, to the closest equivalent, never in bulk to the homepage.
- Decide which URLs should return 410 rather than redirect somewhere irrelevant.
- 301, server-side, one hop. Account for redirects that already existed.
- Password-protect staging rather than relying on noindex you have to remember to remove.
- On launch day: status codes on the top twenty URLs, source checked for noindex, live robots.txt read, sitemap submitted, tags firing.
- For four weeks, watch Page indexing by reason and compare page by page against the before picture.
None of this is difficult. It is about thirty hours of unglamorous work on a mid-sized site, almost all of it in step 1 and step 2, and the reason it so often does not happen is that it has to happen during the part of the project where everyone is excited about the design.
If a move is coming and you would rather it were somebody's job: SEO migration covers the inventory, the map and the monitoring, and website migration covers the build-side move itself. If you are still deciding how far to go, website redesign vs a new website is the prior question, and what a website redesign actually involves sets out the scope. If a move has already happened and traffic has gone, start with why your website is not showing up on Google and then a technical SEO look at what the new site is actually serving.
Frequently asked questions
Inventory the old site before anything is built — a full crawl plus Search Console performance and links exports — then map every URL one to one to its closest equivalent on the new site, implement those as server-side 301 redirects with no chains, keep staging out of the index with a password rather than a noindex tag, verify status codes on launch day, and watch Search Console's Page indexing report page by page for four weeks.
Most often because URLs changed and nothing mapped the old addresses to the new ones, so pages that held rankings now return 404. The other common causes are redirect chains, a new site with substantially less content on the same URLs, and a staging noindex tag or robots.txt disallow that shipped to production.
No. Google treats a redirect to an irrelevant destination as a soft 404, because it can tell the page it was sent to is not a replacement for the page requested. Visitors react the same way and leave. Map to the closest equivalent page, and for URLs with no equivalent, return 410 Gone rather than redirecting them somewhere arbitrary.
301 for a permanent move. A 302 signals that the move is temporary, which is a reason to keep the old URL indexed rather than transfer anything to the new one. The redirects should also be server-side rather than performed by JavaScript, and should reach the destination in a single hop.
Google has to recrawl every URL it knew about and follow each redirect, at whatever rate it crawls your site, so a few weeks of uneven impressions is the normal shape. The thing to watch is the trend: fluctuation that trends back up is expected, while a flat line at the lower level after four weeks means something is still broken and should be diagnosed rather than waited out.
The Page indexing report, by reason. A growing "Not found (404)" count lists URLs you did not map. "Page with redirect" on a page meant to be live means something is redirecting it. "Alternate page with proper canonical tag" on a page that should rank usually means a canonical left over from the build. Compare Performance page by page against the export taken before the move, not against a site-wide total.
The steps are the same; the constraint is different. A replatform may not let you keep your URL structure — Shopify imposes /products/ and /collections/ prefixes, for instance — which makes the redirect map the whole project rather than one task inside it. Any change that moves a URL is a migration, including an HTTPS move or a blog moving from a subdomain into a subfolder.



