WordPress SEO

Migrating a WordPress Site Without Losing Rankings

A step-by-step migration plan for WordPress: what to record before you move, how to map redirects, what to check at launch, and what to watch for weeks after.

By 6 min read
Checklist card with migration steps, four ticked and one outstanding

Migrations lose rankings for boring, preventable reasons: a redirect map nobody finished, a staging site left indexable, a robots.txt that shipped from the development environment. Almost none of it is subtle, and almost all of it is avoidable with a checklist.

This covers the four kinds of migration — new host, new domain, new URLs, new design — and what each one specifically risks.

Know which migration you're doing

  • Host change only, same domain and URLs: the lowest risk. Mostly a DNS and configuration exercise.
  • Domain change: everything needs redirecting, and you'll need to tell Google about the move.
  • URL structure change: the highest-risk kind, because every redirect is a chance to lose a page.
  • Redesign with the same URLs: no redirect work, but content and internal linking can change enough to move rankings on their own.
  • Several at once: do them in stages if you possibly can. Changing host, domain and URLs simultaneously means you can't diagnose what went wrong.

Before you touch anything: record the baseline

This is the step that gets skipped and the one you'll wish you had.

  • Crawl the entire current site and export every URL with its title, meta description, status code and canonical.
  • Export Search Console performance data for the last twelve months — queries, pages, impressions, clicks, average position.
  • Export your top landing pages from analytics, and note the traffic level for each.
  • Record the current index coverage: how many pages Google actually has.
  • Save a copy of robots.txt, the XML sitemaps, and any existing redirect rules.
  • Note your Core Web Vitals so you can tell whether the new site is faster or slower.

Build the redirect map

Every URL that exists now and won't exist afterwards needs a 301 to the closest equivalent page. Not the homepage — the closest equivalent. A bulk redirect to the homepage tells Google the old pages are gone and you lose whatever they had earned.

Work from the crawl export. For each old URL, decide the new one. Where there's genuinely no equivalent, decide deliberately between redirecting to a relevant category and returning a 410, and record why.

Then check the map for chains: A redirecting to B redirecting to C. Collapse them so every old URL points straight at its final destination in one hop. Chains lose a little at each step and slow every visitor who follows them.

Test the map before launch. A spreadsheet of a thousand redirects contains typos, and finding them afterwards means finding them via lost traffic.

Preparing the new site

  • Keep the staging site noindexed and behind HTTP authentication until launch. A staging copy indexed alongside the live site is the most common self-inflicted migration wound.
  • Make sure the new site's robots.txt is the production one, not the development one that blocks everything.
  • Check that Settings → Reading → 'Discourage search engines' is unticked before going live, and ticked while staging.
  • Carry over titles, meta descriptions and canonical tags. A redesign that regenerates all titles from a template loses the ones that were written deliberately.
  • Preserve the content. Trimming copy during a redesign is a content change and a migration at the same time, and you won't be able to tell which one moved the rankings.
  • Keep the internal linking structure at least as good as it was. Navigation changes alone can shift what ranks.

Launch day

  • Lower the DNS TTL a day or two in advance so the switch propagates quickly and you can roll back fast.
  • Go live, then immediately verify: HTTPS works, the canonical version redirects correctly, robots.txt is right, and a sample of redirects resolve in one hop.
  • Submit the new XML sitemap in Search Console. Keep the old sitemap available for a while so Google can find the old URLs and follow their redirects.
  • For a domain change, use the Change of Address tool in Search Console, and verify the new domain there first.
  • Check that analytics and tag manager are firing on the new site. A migration that also silently breaks tracking is very hard to evaluate.
  • Crawl the new site immediately and look for 404s, redirect chains, missing titles and broken internal links.

The first two weeks

Expect a dip. Google has to recrawl everything, follow the redirects and reassess. A drop of some size in the first fortnight is normal even on a well-executed migration, and panicking into further changes makes diagnosis impossible.

  • Watch Search Console's Pages report for a rise in 404s or 'redirect error' entries.
  • Watch crawl stats — a big spike is normal and healthy as Google reprocesses the site.
  • Check the top twenty landing pages from your baseline specifically, rather than only aggregate traffic.
  • Fix 404s as they appear. Every one is a redirect you missed.
  • Resist making unrelated changes. You want one variable.

Updating what points at you

Redirects preserve most of the value of an external link, but they're a fallback, not a plan. Where you can get a link updated, do.

Start with the ones you control: your social profiles, your Google Business Profile, directory listings, email signatures, printed material. Then contact the handful of highest-value external sites linking to you and ask them to update.

This matters most for a domain change. For a URL structure change on the same domain, the redirects do most of the work.

What actually causes migrations to fail

  • Redirects done in bulk to the homepage instead of page by page.
  • The development robots.txt or a leftover noindex shipping to production.
  • The staging site left indexable and competing with the live one.
  • Content substantially rewritten or trimmed at the same time as the move.
  • Internal linking quietly degraded by a new navigation with fewer links.
  • A slower new site, pushing Core Web Vitals from passing to failing.
  • Giving up too early and reverting half of it after a week, leaving the site in a state nobody understands.

When to judge it

Six to eight weeks. Before that you're looking at Google's recrawl in progress, not at the outcome. Compare against the baseline you exported, page by page for the pages that mattered.

If traffic hasn't recovered by then, the crawl data will usually tell you why: 404s that should be redirects, pages excluded for a canonical pointing somewhere unexpected, or a set of URLs that never made it into the new sitemap.

Frequently asked questions

Will I lose rankings when I migrate my WordPress site?

A temporary dip is normal while Google recrawls and reassesses. A permanent loss usually means something specific went wrong: missing or bulk redirects, a leftover noindex, or content changed substantially at the same time. Executed carefully, most migrations recover within six to eight weeks.

How long should I keep 301 redirects in place?

Indefinitely, if you can. Google eventually treats a 301 as permanent and transfers the signals, but old links and bookmarks keep sending people for years. The cost of keeping a redirect map is near zero; the cost of removing it is 404s from every link that was never updated.

Can I redirect all my old URLs to the homepage?

No. Google treats mass redirects to the homepage as soft 404s, and you lose whatever those pages had earned. Map each old URL to its closest equivalent. Where nothing is close, a 410 is more honest than a redirect to an unrelated page.

Should I change my URL structure during a redesign?

Only if the current structure is genuinely causing a problem. Changing URLs is the highest-risk part of any migration, and doing it at the same time as a redesign means you can't tell which change moved your rankings. If both are needed, stage them.

How do I tell Google I've moved to a new domain?

Verify the new domain in Search Console, put 301 redirects in place from every old URL to its new equivalent, then use the Change of Address tool in the old property. Keep the old sitemap accessible for a while so Google can find the old URLs and follow the redirects.

Topics

  • WordPress migration
  • website migration SEO
  • 301 redirects
  • site migration checklist