読み物Technical SEO

Level: Pro

SEO Migrations and Website Replatforming

Change domains, platforms, or URL structures without losing what you've built: inventory, redirect mapping, staging protection, launch checks, monitoring, and recovery.

Edeeson Opina9 min read

A Pro lesson card: lesson 13 of the SEO series, SEO Migrations and Website Replatforming, with the Miso fox walking.

What you’ll learn

  • Build a URL inventory and value list before any migration
  • Write a one-hop, permanent redirect map
  • Protect staging sites from indexing
  • Validate before launch and monitor after it
  • Diagnose and recover from post-migration drops
On this page
  1. Types of migrations and their risk
  2. Phase 1: inventory everything you have
  3. Phase 2: preserve important content
  4. Phase 3: redirect mapping
  5. Phase 4: canonical, metadata, and template verification
  6. Staging versus production indexing
  7. Pre-launch SEO validation
  8. Launch day
  9. Post-launch monitoring
  10. Recovery planning
  11. The migration checklist
  12. Common mistakes
  13. Key takeaways
  14. Exercise
  15. References
  16. What's next

A migration is any change that alters the URLs, content, templates, or infrastructure search engines know your site by. Redesigns, new domains, a move to another CMS or framework, HTTPS, merged sites: all of them can be done without losing search visibility, and all of them can wipe out years of it in a weekend. The difference is almost never luck. It's inventory, mapping, testing, and monitoring, done in that order.

This lesson walks through each kind of migration, then gives a full checklist you can adapt.

Types of migrations and their risk

  • Domain migrations: moving to a new domain (oldbrand.com to newbrand.com). Every URL changes. High risk, but well-supported with redirects and Search Console's Change of Address tool.
  • Protocol and host changes: HTTP to HTTPS, or non-www to www. Low risk if every URL redirects one-to-one (lesson 7).
  • CMS migrations: moving from one content system to another. Risk depends on whether URLs, templates, and content change along the way. They usually do.
  • URL restructuring: changing paths (/blog/2024/05/post-name to /guides/post-name/). Every changed URL needs a redirect.
  • Framework migrations: rebuilding the front end (for example, from server-rendered templates to a JavaScript framework). URLs may stay the same while rendering, metadata, internal links, and performance change underneath. Often underestimated.
  • Content consolidation: merging sections or sites, pruning pages. Signals move only where you redirect them.

The riskiest projects combine several at once: new domain, new CMS, new URLs, new design. If you can, separate them into stages, so that when something goes wrong you know which change caused it.

Phase 1: inventory everything you have

You can't redirect what you haven't listed. Build a URL inventory from every source:

  • a full crawl of the current site;
  • all XML sitemaps;
  • Search Console's Performance report: every page with clicks or impressions over the last 16 months (the maximum it keeps) via export or the API;
  • analytics landing pages;
  • server logs: URLs crawlers and users actually request (lesson 11);
  • pages with external links, from Search Console's Links report or a backlink tool.

For each URL, record its status, canonical, indexability, organic clicks, impressions, external links, and main query. This becomes your value list: it tells you which URLs matter most.

Phase 2: preserve important content

A migration is not the moment to accidentally delete what ranks. For each high-value URL, decide:

  • Keep: the content moves to a new URL (or stays) essentially unchanged.
  • Improve: the content moves and is updated, keeping the topic and intent.
  • Merge: several pages combine into one; all redirect to it.
  • Retire: no equivalent exists; return 404 or 410, and accept the loss knowingly.

Watch for content that existed in the old templates but not in the new ones: introductory text on category pages, FAQs, author bios, structured data, alt text, and internal links in sidebars. Design reviews often remove it for looks, and rankings drop with it.

Phase 3: redirect mapping

The redirect map is the heart of the migration. Every old URL that has value (traffic, links, or indexing) should redirect once, with a permanent status (301 or 308), to the most relevant new URL.

redirects.csvCSV
old_url,new_url,status,reason
https://oldbrand.com/blog/2024/05/clean-leather-wallet,https://www.newbrand.com/guides/clean-leather-wallet/,301,moved
https://oldbrand.com/blog/2023/11/leather-care-tips,https://www.newbrand.com/guides/leather-care/,301,merged
https://oldbrand.com/products/wallet-classic-brown,https://www.newbrand.com/wallets/classic/,301,moved
https://oldbrand.com/promo/black-friday-2023,,410,retired

Principles:

  • One-to-one where possible. Pattern rules (regex) are fine for consistent structures, but verify them against your inventory.
  • No mass redirects to the homepage. Google treats irrelevant redirects, especially to the homepage, much like soft 404s: the old URL's signals don't carry over.
  • No chains. Update existing old redirects to point straight at the new final URL.
  • Preserve query strings where they carry meaning (pagination, legitimate filters), and drop tracking parameters.
  • Map images and files too, if they rank in image search or are linked externally.

In nginx, a large one-to-one map is efficient with the map directive:

redirects.confnginx
map $uri $migration_target {
    default "";
    /blog/2024/05/clean-leather-wallet  /guides/clean-leather-wallet/;
    /blog/2023/11/leather-care-tips     /guides/leather-care/;
    /products/wallet-classic-brown      /wallets/classic/;
}

server {
    server_name oldbrand.com www.oldbrand.com;
    # listen and ssl lines omitted
    location = /promo/black-friday-2023 { return 410; }
    location / {
        if ($migration_target) { return 301 https://www.newbrand.com$migration_target; }
        # Anything unmapped: same path on the new domain, which returns its own 404 if needed
        return 301 https://www.newbrand.com$request_uri;
    }
}

Phase 4: canonical, metadata, and template verification

On the new site, before launch, verify for every template:

  • titles, meta descriptions, and H1s are populated (not template placeholders);
  • canonical tags point to the new, final, self-referencing URLs on the new host;
  • robots meta tags are correct for production, with no leftover noindex;
  • structured data is present and valid (lesson 9);
  • hreflang annotations, if any, reference new URLs (lesson 14);
  • internal links point directly at new URLs, not at old ones that redirect;
  • important content renders in the initial HTML (lesson 10).

Staging versus production indexing

A staging site that gets indexed creates duplicate content and can outrank production with unfinished pages. Protect staging with authentication (HTTP basic auth or an IP allowlist). That's the only reliable method: robots.txt can be ignored and leaves bare URLs indexable, and noindex is too easy to copy into production.

staging.confnginx
server {
    server_name staging.newbrand.com;
    # listen and ssl lines omitted
    auth_basic "Staging";
    auth_basic_user_file /etc/nginx/staging.htpasswd;
    add_header X-Robots-Tag "noindex, nofollow" always;
}

The X-Robots-Tag header is a second layer in case authentication is ever removed. Make sure production configuration can't inherit it: keep environment-specific settings in separate files, and test for it in your launch checklist.

Pre-launch SEO validation

  1. Crawl staging (authenticated crawlers support basic auth) and compare with the old site's crawl: page counts per template, titles, canonicals, status codes, internal links.
  2. Test the redirect map: request every old URL from your inventory against a staging copy of the redirect rules and check one hop, permanent status, and a 200 destination.
  3. Check performance of key templates against the old site.
  4. Prepare sitemaps listing the new URLs.
  5. Verify the new domain in Search Console (for domain moves) before launch, so data starts immediately.
  6. Record baselines: clicks, impressions, indexed pages, and rankings for priority queries, so you can compare.
  7. Choose launch timing: avoid your peak season, and make sure the team is available for at least two weeks afterwards.

Launch day

  • Deploy the new site and the redirects together.
  • Remove staging protections only from production, then confirm production has no noindex and robots.txt allows crawling.
  • Run your redirect test against production for every URL in the inventory.
  • Submit the new sitemaps in Search Console. For domain moves, it's also helpful to keep the old sitemap (listing old URLs) submitted for a while, so crawlers find the redirects quickly.
  • For domain moves, use Search Console's Change of Address tool on the old domain property.
  • Spot-check high-value URLs with URL Inspection.

Post-launch monitoring

For at least the first four weeks, check daily, then weekly:

  • Server logs: Googlebot requests to old URLs should return 301; watch for 404 spikes and redirect loops.
  • Search Console Page indexing: new URLs moving into "Indexed"; old URLs moving to "Page with redirect."
  • Performance report: compare clicks and impressions against the baseline, by page group. Some fluctuation is normal while signals are processed; for medium-sized sites, Google says most pages typically move within a few weeks, and larger sites can take longer.
  • Crawl errors: fix 404s that have traffic or external links by adding redirects.
  • Rendering and Core Web Vitals on the new templates.

Keep redirects in place for as long as possible. Google recommends at least a year; in practice, many teams keep them permanently, because external links and bookmarks never fully update. Also update the links you control: social profiles, email signatures, directory listings, and partner sites.

Recovery planning

Before launch, decide what would trigger a rollback or a hotfix, and who decides. Typical triggers: a site-wide noindex, redirects failing at scale, or critical templates returning errors.

If visibility drops after launch, diagnose in this order:

  1. Indexability: noindex, robots.txt, canonicals pointing to the wrong host, rendering failures.
  2. Redirects: missing mappings for high-value URLs, chains, homepage dumps, temporary instead of permanent.
  3. Content and links: removed content, lost internal links, thinner templates.
  4. Performance: slower templates or server errors reducing crawling.
  5. External factors: seasonality and search engine updates that coincided with the launch. Check whether competitors moved too.

Fix by priority, using the value list from phase 1: the URLs with the most clicks and links first.

The migration checklist

  • Inventory from crawl, sitemaps, Search Console (16 months), analytics, logs, and backlinks.
  • Value list with clicks, impressions, links, and main queries per URL.
  • Decision per high-value URL: keep, improve, merge, or retire.
  • Redirect map: one hop, permanent, most relevant target, no homepage dumps, existing chains updated.
  • New templates verified: titles, descriptions, H1s, canonicals, robots, structured data, hreflang, internal links, rendering.
  • Staging protected by authentication; production config can't inherit staging rules.
  • Pre-launch crawl comparison and full redirect test on staging.
  • Baselines recorded; Search Console verified for the new property.
  • Launch: redirects live with the site, noindex removed, robots.txt correct, sitemaps submitted, Change of Address (domain moves).
  • Post-launch: daily log and Search Console checks for four weeks; fix 404s with value.
  • Redirects kept for at least one year; links you control updated.
  • Rollback triggers and owners agreed in advance.

Common mistakes

  • Starting the redirect map a week before launch.
  • Redirecting everything to the homepage or to top-level categories.
  • Launching with the staging noindex or robots.txt.
  • Changing domain, URLs, design, and content all at once, making problems impossible to isolate.
  • Removing redirects after a few months to "clean up."
  • Declaring success or failure after three days.

Key takeaways

  • Treat a migration as a data project: inventory, value, mapping, verification, monitoring.
  • Redirect every valuable URL once, permanently, to its most relevant equivalent, and keep the redirects for at least a year.
  • Protect staging with authentication, and test production for leftover staging settings.
  • Expect fluctuation for weeks; diagnose drops starting with indexability and redirects.

Exercise

Plan a URL restructuring for one section of a site you know (for example, moving /blog/YYYY/MM/slug to /guides/slug/):

  • Build an inventory of at least 30 URLs with clicks and impressions from Search Console.
  • Create the redirect map as a CSV, marking keep, merge, or retire for each.
  • Write the server rules to implement it, and a script or command to test every old URL.
  • List the five metrics you'd check daily for the first two weeks, and the threshold that would make you roll back.

Practice with RankMiso. Before launch, save an audit of each key page in RankMiso (our free extension); after launch, compare the saves in its History to see which checks changed. Its Compare HTML can also check a page against an HTML file you saved before the migration: title, description, canonical, robots, hreflang, H1, and structured data, field by field. Free on the Chrome Web Store (opens in a new tab) and Firefox Add-ons (opens in a new tab).

References

What's next

Some sites don't move between domains; they span several languages and countries at once. International SEO and Multilingual Websites covers how to structure those sites and tell search engines which version belongs to which audience.

See every lesson in SEO: From Fundamentals to Advanced Optimization