Googlebot does not browse like a human and it does not respect your information architecture out of politeness.
A domain move is not a DNS event with SEO sprinkled on top; it is a controlled crawl-surface transplant. The old hostname remains a live interface to historical URLs while the new origin learns traffic, TLS handshakes settle, and caches repopulate. Most migration damage does not come from losing PageRank in the abstract. It comes from brittle redirect logic, accidental wildcard captures, canonical and hreflang drift, and crawl budget wasted on soft 404s and redirect chains. The sane approach is to treat redirects as edge middleware, not origin cleanup, and to validate the whole map against server logs before Google’s crawl patterns harden around mistakes.
Start with a URL inventory that is as close to exhaustive as your infrastructure can produce. That means merging sitemaps, CMS exports, analytics landing pages, internal link graphs, backlink samples, and historical server logs. The log set matters because it captures URLs that never appeared in sitemaps but still earn crawler attention: faceted navigation, legacy query-string paths, uppercase variants, index.php routes, and old campaign URLs. Normalize the inventory into a canonical key space before writing rules. Decide early how you will handle trailing slashes, case sensitivity, percent-encoding, query parameters, and locale prefixes. If the old platform and new platform disagree on any of those, a one-to-one redirect map will quietly degrade into a chain factory.
At the edge, prefer explicit maps plus tightly scoped regex fallbacks. A broad catch-all can look elegant in staging and become a severity-one incident in production when it swallows static assets, API paths, or localized routes into the homepage. Use priority-ordered rules, and make wildcard captures the last resort rather than the default. For high-value URLs, redirect directly to the final destination with a single 301. Avoid 302s unless the move is genuinely temporary. Collapse chains before launch: old URL to canonical old URL to new URL is a crawl-budget tax and a signal-latency problem. If the CDN or edge worker supports it, run redirect resolution as a deterministic function of the request path and locale, then test it with a replay of the log-derived URL set.
The QA layer is where migrations are won. Crawl the old hostname and assert the exact status code, location header, and final destination for every sampled URL. Then crawl the new hostname and verify self-canonicals, hreflang reciprocity, robots directives, and rendered internal links. Shadow the new origin behind the edge before flipping DNS, and compare old-versus-new content signatures for templates that should preserve intent. Don’t trust a visual spot check; a product page that renders but canonicalizes to the wrong locale is still a migration bug.
Server logs close the loop. After the cutover, parse logs for redirect chains, 404 spikes, 5xx bursts, and crawler hits on URLs that should have been mapped. Segment by user agent, status code, and referrer class. Watch for Googlebot behavior rather than assuming it mirrors browser traffic. If a cohort of legacy URLs is still receiving crawl requests but resolving to soft 404s, fix the map at the edge and resubmit sitemaps only after the redirect surface is clean. Keep the old hostname resolving and redirecting for as long as the historical URL graph justifies it; DNS cleanup is not a launch-day checkbox.
The edge is also the right place to enforce host canonicalization and protocol consistency. Redirect HTTP to HTTPS and the old hostname to the new one in a single hop where possible. Avoid stacking TLS termination, CDN rules, origin rewrites, and application middleware into a Rube Goldberg redirect pipeline. Every additional hop is another place for query strings to be dropped, locale prefixes to be mangled, and cache headers to become lies. Instrument the edge with request IDs or trace headers so that a reported redirect can be followed from client to origin without guesswork.
Finally, treat the migration as an observability project, not a launch event. Maintain a short-lived regression suite of high-value URLs and log-derived edge cases, run it on every redirect deploy, and keep a rollback path that does not depend on the origin application. A clean domain move is boring in the best way: one hop, correct canonical, fast origin, and logs that prove the crawler saw exactly what you intended.



