Previous article
Next article

How to Migrate a Website Without Losing SEO Traffic

Read summarized version with

Website migration SEO is the work that keeps rankings and organic traffic when a site changes its domain, CMS, URL structure or language setup. Search engines have to find every new address, connect it to the old one and move the signals across. If one link in that chain breaks, pages drop out of the index and traffic falls, sometimes for months. Visual redesign is a separate topic, and we link to it where it matters.

What Website Migration Means for SEO

For SEO, a site migration is any change that alters the URLs, the way pages are served or the way search engines discover them. Some migrations touch every page, others only the server. The risk depends on how many URLs change and how many systems are involved.

Migration typeWhat changesRisk
HTTP to HTTPSProtocol for all URLsLow, if redirects and canonicals are updated
Domain changeHost name for all URLsMedium to high
URL structure changePaths, folders, slugsMedium to high
CMS replatformingTemplates, URLs, rendering, metadataHigh
Subdomain to subfolder moveHost and paths for a sectionMedium
Language version restructuringPaths and hreflang for all language versionsMedium to high
Merging two sitesContent, URLs, internal linksHigh

The worst case is several changes at once: a new domain, a new CMS and a new URL structure in one release. When traffic drops after such a launch, it is hard to tell which change caused it.

Why Sites Lose Traffic After Migration

Rankings depend on signals collected over years: links, content, internal structure, user behavior (our article on Google ranking factors explains them). A migration puts those signals at risk in a few predictable ways.

Missing redirects are the most common cause. Old URLs return 404, and every backlink pointing to them stops passing value. A typical example: a store moves to a new CMS, the product pages are redirected, but the old filter pages and blog posts are forgotten.

Redirect chains slow crawling and lose users. When a site has gone through several migrations, an old URL may redirect to an HTTPS version, then to a new domain, then to a new path. Google’s documentation on site moves asks to send old URLs directly to the final destination and, if a chain cannot be avoided, keep it to about three hops and no more than five.

Lost content hurts quietly. The new templates may drop text blocks, FAQ sections or product descriptions that the old pages ranked for. The URL works, the redirect works, but the page no longer answers the query.

A forgotten noindex or a robots.txt that blocks the whole site, copied from staging to production, can remove a site from search within days.

Broken internal links push crawlers through redirects or into 404s, and changed canonical tags may point to the old domain or to pages that no longer exist.

Why traffic drops after migration

Before Migration: Planning and Benchmarking

Most migration problems are prevented before launch. A written SEO migration plan answers four questions: what changes, which URLs are affected, how each old URL maps to a new one, and how you will know if something went wrong.

Full Crawl and Traffic Baseline

Start with a full inventory of the current site:

  • crawl the site with Screaming Frog and export every URL with its status code, title, canonical, hreflang and word count;
  • export the Performance report from Google Search Console for the last 12 to 16 months: queries, pages, clicks, impressions;
  • list the top landing pages from GA4 by organic sessions and conversions;
  • export backlinks from Ahrefs or a similar tool, with the target URL for each;
  • download the XML sitemaps and the list of indexed pages from Search Console.

This becomes your baseline. After launch you will compare against it, and it is also the source list for the redirect map. Do not rely on the sitemap alone: crawls and backlink data regularly reveal old URLs that the CMS no longer lists but that still get traffic or links.

Redirect Mapping

The redirect map is a table with two columns: every old URL and the new URL it should lead to. The rules for 301 redirect mapping are simple:

  • one-to-one where possible: each old page goes to its closest equivalent, a product to the same product, an article to the same article;
  • use permanent server-side redirects; Google recommends 301 or 308;
  • use RegExp rules for large groups with a stable pattern, for example /blog/(.*) to /articles/$1, and test them on real URLs;
  • do not redirect everything to the homepage; Google’s site move guide warns that many old URLs pointing to one unrelated page confuse users and may be treated as soft 404s;
  • if several old pages are merged into one, redirect them to the page that now covers their content;
  • pages with no equivalent and no traffic or links can return 404 or 410.

Check the map against the backlink export: every URL with external links needs a working destination. Update the old redirects too, so that URLs from previous migrations point straight to the new addresses.

Staging Environment Checks

The new site should be fully built and tested on a staging server before launch. Close staging from search engines with password protection or IP restrictions; noindex alone is risky, because it is easy to carry over to production. On staging, check:

  • titles, meta descriptions, H1, canonical and hreflang on every page template;
  • that the main content is in the server HTML, not only after JavaScript runs;
  • structured data on key templates in the Rich Results Test;
  • internal links point to new URLs, not to old ones or to redirects;
  • the redirect map, by running the list of old URLs through a crawler pointed at staging;
  • Core Web Vitals on the main templates.

A crawl of staging compared with the crawl of the old site shows missing pages, lost text and changed metadata. When a migration comes together with new development, plan these checks into the project from the start; our page on corporate website development describes how we include them.

During Launch: The Migration Day Checklist

Pick a day with low traffic, not before a holiday or a sale, and keep developers available for at least two days. Use this website migration checklist on launch day; together with the planning steps above it forms a complete SEO migration checklist:

  • Switch on the redirects and test a sample of old URLs from each group: top pages, backlinked pages, categories, blog posts.
  • Check robots.txt on production: it must allow crawling and point to the new sitemap.
  • Remove noindex and password protection carried over from staging.
  • Upload the new XML sitemap and submit it in Search Console. Keep the old sitemap available for a while so Google recrawls the old URLs and sees the redirects.
  • Check canonical tags and hreflang on key templates in the live HTML.
  • For a domain change, verify the new domain in Search Console and submit the Change of Address tool from the old property. According to Google, the change of address tool is used only for domain or subdomain changes, not for HTTPS migrations or path changes within a domain.
  • Add an annotation in GA4 and your reporting tools with the launch date.
  • Run a full crawl of the live site and fix 404s and redirect chains the same day.

For an HTTPS migration the steps are the same, minus the Change of Address tool: redirect HTTP to HTTPS, update canonicals, internal links and the sitemap, and add the HTTPS property to Search Console.

After Migration: Monitoring and Recovery

Google’s site move documentation says small and medium sites can take a few weeks for most pages to move, larger sites take longer, and rankings may fluctuate in the meantime. Plan monitoring for 4 to 12 weeks:

  • daily in the first week: 404 errors, server errors and redirect status in Search Console and in the crawler;
  • daily in the first week: server logs, to see how often Googlebot requests old and new URLs;
  • weekly: indexed pages for the new site and the old URLs dropping out, using the Pages report and both sitemaps;
  • weekly: rankings for the main queries and clicks per landing page compared with the baseline;
  • weekly: conversions in GA4, since a technical problem in forms or checkout can look like an SEO drop;
  • monthly: backlinks, and outreach to the sites with the most valuable links asking them to update the URL;
  • monthly: AI visibility, checking whether ChatGPT, Gemini and Perplexity cite the new URLs or still the old ones.

The normal picture in the first weeks: impressions and clicks for the old property in Search Console fall, the new property grows, and total clicks may dip for a few weeks. Warning signs look different: the number of indexed pages on the new site does not grow, the Pages report shows hundreds of 404s or “Page with redirect” for new URLs, and Googlebot in the logs keeps crawling only old addresses.

If a group of pages loses traffic, compare the old and new versions: missing redirect, lost content, changed title, blocked resources. After the first three months, migration checks become part of regular website maintenance.

SEO migration checklist

Special Cases

Moving Language Versions and Hreflang

Changing the structure of language versions is a full migration for each language. A common setup puts the main language in the root of the site and the other languages in folders such as /ru/ or /en/, with the same slug across versions. Such a setup needs a redirect for every URL that moved, reciprocal hreflang tags (uk and ru on every pair of pages, each pointing to the other and to itself), canonical tags that point to the page’s own language version, and a language switcher that leads to the equivalent page, not to the homepage of the other version. An x-default tag tells Google which version to show users whose language does not match any version.

Typical mistakes: hreflang that points to URLs that redirect, missing return tags, and automatic redirects based on browser language, which can stop Googlebot from seeing some versions at all.

Changing CMS or Frontend Framework

CMS migration SEO has two extra risks beyond URLs. The new platform may generate different URL patterns (trailing slashes, uppercase letters, parameters, pagination), which need redirect rules. And a move to a JavaScript framework can change how pages are rendered: if the new site builds content in the browser, Google indexes it later and AI crawlers may not see it at all. Our article on JavaScript SEO explains how to check rendering before launch.

Merging Two Websites

When two sites merge, start with a content inventory of both. Pages on the same topic should be consolidated into one stronger page, and the weaker version redirected to it; otherwise the merged site competes with itself for the same queries. Pages unique to the old site get their own place in the new structure. Expect a longer settling period than for a simple domain change, because Google has to reassess the combined content.

Website Migration Questions

01

How long does it take to recover traffic after a migration?

02

Will changing my domain hurt SEO?

03

How long should 301 redirects stay in place?

04

Can I migrate a website and redesign it at the same time?