Migrating off a legacy CMS without losing the rankings
Written by
Akash Kurup
Published
August 15, 2026
To migrate a legacy CMS without losing SEO rankings, build a comprehensive URL inventory from server logs, preserve existing URLs wherever possible, and meticulously verify all critical metadata and redirects before cutover.
Where the traffic actually goes
A replatform that loses 40 per cent of organic traffic rarely lost it to the framework. It lost it to a handful of unglamorous decisions: URLs that changed shape for tidiness, canonical tags that did not survive the export, structured data quietly dropped, and a redirect map built from the sitemap.
The sitemap is the wrong source. It lists what the old system thought it published. The pages that actually earn traffic are in the server logs and in search console, and the two sets differ more than anyone expects. Long-lived pages that nobody remembers, parameterised URLs with real backlinks, and old campaign pages still ranking are routinely absent from a sitemap and present in the logs.
Inventory before anything else
We build the inventory from four sources and take the union.
- Twelve months of server access logs, filtered to search engine crawlers and to referred human traffic
- Search console data, by landing page and by query
- Analytics landing pages with at least one session
- The CMS export itself, which is usually the smallest of the four
Each URL gets a status code, a canonical target, inbound link count and a traffic figure. The output ranks what must not break, which is a different list from what the CMS considers to be its content.
Preserve URLs by default
The strongest option is not to change URLs at all. A migration that keeps every path is dramatically less risky than one that improves them, and "improving" a URL structure almost never pays back the risk on an established estate.
Where a change is unavoidable, the rules are unforgiving: a single 301 hop, never a chain, never a redirect to the home page. A redirect to an irrelevant page is treated as a soft 404 and is worse than the 404 it replaced, because it hides the problem.
# Verify before cutover: exactly one hop, correct target, 301 not 302
while read -r old new; do
final=$(curl -sIL -o /dev/null -w '%{url_effective} %{http_code} %{num_redirects}' "$old")
echo "$old -> $final (expected $new)"
done < redirect-map.tsv
The metadata nobody exports
Body content survives migration because it is visible and someone would notice. These do not, and nobody notices until rankings move:
- Canonical tags, especially self-referencing ones on paginated sets
- hreflang clusters, which break in both directions if one side is missing
- Structured data, particularly product, article and breadcrumb markup
- Meta robots directives on pages deliberately excluded from indexing
- Open Graph images, which do not affect ranking but visibly affect click-through when they disappear
We diff these field by field between the old and new renders of the same URL, on the full inventory, not a sample. It is a boring automated check that catches the most expensive class of error.
Performance is part of the migration
Replatforming is the cheapest moment to fix largest contentful paint and cumulative layout shift, because everything is being touched anyway. The usual wins are unremarkable: correctly sized and modern-format images, a font strategy that does not block first paint, and reserved space for anything that loads late.
On a recent forty-one page migration this moved largest contentful paint from 4.1 seconds to 0.9 and lifted the SEO audit score from 62 to 91. Neither number required a rewrite. They required doing the ordinary things while the pages were already open.
Cut over, then watch the right things
For the first fortnight, the useful signals are crawl stats and index coverage in search console, 404 volume in the logs broken down by referrer, and redirect hop counts sampled from live traffic. Ranking positions are noisy over that window and watching them mostly generates anxiety.
Keep the old inventory and the redirect map under version control. Six months later, when somebody asks why a specific URL behaves the way it does, that file is the only place the answer exists.
Frequently asked questions
How do I prevent SEO ranking loss during a CMS migration?
To prevent SEO ranking loss during a CMS migration, create a comprehensive URL inventory from server logs, search console, and analytics. Preserve existing URLs whenever possible. Meticulously verify critical metadata like canonical tags and structured data, and ensure all redirects are single-hop 301s to correct targets before the cutover.
Why is a sitemap not sufficient for creating a redirect map during CMS migration?
A sitemap is insufficient because it only lists what the old system thought it published, not the pages that actually earn traffic. Server logs and search console data reveal long-lived pages, parameterised URLs with backlinks, and old campaign pages that still rank but are often missing from a sitemap.
What metadata should be verified before a CMS migration?
Before a CMS migration, verify canonical tags, hreflang clusters, structured data (product, article, breadcrumb markup), meta robots directives, and Open Graph images. These elements often do not survive migration unnoticed and can significantly impact rankings or click-through rates if incorrect or missing.
What should be monitored immediately after a CMS migration cutover?
Immediately after a CMS migration cutover, monitor crawl stats and index coverage in search console, 404 volume in server logs broken down by referrer, and redirect hop counts sampled from live traffic. Ranking positions are noisy during the initial fortnight, so focus on these technical signals.
Sources and further reading
- Site moves with URL changes. Google Search Central. Google's own checklist: map every old URL to its new one, redirect with permanent redirects, and keep them in place for at least a year.
- Redirects and Google Search. Google Search Central. How Google treats permanent and temporary redirects, and which server-side redirect to use when a URL changes for good.
Want this applied to your own operation?
A working session on your own estate, with a prioritised view of what to build, what to buy and what to leave alone.
0 comments