A site migration redirect map connects each important old URL to its most relevant new destination. This guide provides a reusable URL mapping spreadsheet structure, implementation examples for common platforms, and a launch-to-post-migration audit checklist for preserving discoverability, fixing broken backlinks, and finding redirect chains or loops.
Overview
A migration can change a domain, URL structure, content management system, information architecture, or several of these at once. The technical task is not simply to redirect the old homepage. It is to account for the URLs that people, search engines, partners, analytics systems, and external websites may still request.
For permanent moves, a 301 redirect is generally the starting point. Temporary tests or short-term changes may call for a 302 or 307 instead. Choose the status code according to the intended duration and behavior of the move, then confirm that the implementation matches that decision.
Use this mapping template as a working source of truth. Create one row for every known old URL, including high-value pages, XML sitemap URLs, pages with backlinks, URLs in analytics reports, and important variants such as trailing slashes, uppercase paths, or legacy folders.
Old URL | New URL | Redirect code | Page type | Priority | Source | Query-string rule | Status | Notes
https://example.com/old-guide | https://example.com/guides/new-guide | 301 | Guide | High | Sitemap/backlink | Preserve selected parameters | Planned | Test title and canonical
https://example.com/legacy-product | https://example.com/products/current-product | 301 | Product | High | Analytics | Preserve campaign parameters | Planned | Confirm equivalent content
https://example.com/removed-page | https://example.com/resources/ | 301 or 410 | Article | Medium | Crawl | Review before redirecting | Review | Avoid an unrelated destination
The new URL should be the closest useful equivalent, not merely the homepage. If no comparable page exists, decide deliberately whether a relevant category page, resource hub, or an appropriate gone response is the clearest outcome. Record that decision in the notes column.
Checklist by scenario
Before the migration
- Inventory the old site. Export URLs from the current XML sitemap, crawl the site, review server logs if available, and collect landing pages from analytics. Add URLs that receive valuable backlinks or appear in important marketing, email, QR code, and campaign links.
- Normalize the inventory. Record the protocol, hostname, path, and relevant query-string behavior. Identify whether the preferred site uses HTTPS, www or non-www, lowercase paths, and a consistent trailing-slash convention.
- Classify each URL. Label pages as products, services, articles, categories, media, feeds, pagination, or utility pages. Classification makes it easier to apply mapping rules without accidentally redirecting unrelated content.
- Map by intent and equivalence. Match an old page to the new page that satisfies the same visitor need. Do not send every obsolete URL to the homepage simply because it is available.
- Mark exceptions. Separate URLs that need individual rules from predictable groups that can use a pattern. Document exclusions for admin paths, assets, health checks, and platform-specific routes.
- Set a freeze point. Agree on the final old-URL inventory, destination URLs, and implementation owner before launch. Last-minute content changes should update the spreadsheet, not bypass it.
During implementation
Install redirects at the layer that reliably receives the request. Keep rules readable and place specific exceptions before broad patterns. A simple Apache example is:
RewriteEngine On
RewriteRule ^old-guide/?$ https://www.example.com/guides/new-guide [R=301,L]
For Nginx, an individual redirect may look like this:
location = /old-guide {
return 301 https://www.example.com/guides/new-guide;
}
At a CDN or edge platform such as Cloudflare, create a redirect rule that matches the old hostname and path and sends the request directly to the final HTTPS destination. Check whether the platform preserves, drops, or rewrites query strings, and test both matching and non-matching paths.
In WordPress, use the hosting layer or a maintained redirect tool when possible. Avoid adding overlapping rules in several plugins, themes, and server files. For serverless hosts, define redirects in the platform's supported configuration file or routing settings, then deploy to a staging environment before changing production behavior. The exact file format differs by host, so validate the syntax against that host's current documentation.
Do not rely on JavaScript redirects for a normal site migration when a server-side redirect is available. A server response is easier to test, generally reaches crawlers and users earlier, and avoids dependence on browser execution.
At launch
- Deploy the redirect rules and confirm that the new site is accessible over HTTPS.
- Test representative URLs from every page type, directory, hostname, and rule group.
- Verify that each old URL reaches the final destination in one redirect where practical.
- Check that internal links, canonical tags, XML sitemaps, hreflang references if used, structured data URLs, and feeds point to the new URLs.
- Confirm that staging restrictions, noindex directives, temporary DNS settings, and test redirects are not present on production.
- Keep a copy of the old configuration and the completed mapping file for diagnosis.
What to double-check
Chains, loops, and status codes
A redirect chain occurs when an old URL redirects to an intermediate URL that redirects again. A loop occurs when rules send a request back to itself or between two destinations. Use a redirect checker or a crawl export to inspect the complete response path, not only the first status code.
For example, aim for:
/old-page → 301 → https://www.example.com/new-page → 200
Investigate paths such as:
/old-page → 301 → /intermediate → 301 → /new-page → 200
/new-page → 301 → /new-page
Review redirect caching when a rule appears correct in configuration but tests still show an earlier result. Test with more than one client or request method where relevant, and remember that browsers can retain permanent redirects.
Canonicalization and query strings
A redirect and a canonical tag solve different problems. A redirect sends the requester elsewhere; a canonical tag signals the preferred version while leaving the current URL accessible. Use the appropriate control for duplicate or retired URLs rather than adding both by habit.
Decide how query strings should behave before launch. Preserve parameters used for attribution when they are needed, but avoid carrying obsolete tracking or session parameters into every destination. Document the rule in the mapping sheet and test URLs with UTM parameters, filters, and unexpected values. The guide on query strings and tracking data can be used as a companion reference.
Backlinks, logs, and analytics
Compare the mapping against referring URLs and landing-page reports. A redirect can be technically valid while still sending a valuable backlink to an irrelevant destination. Review important referring pages individually and use the redirect log analysis workflow to find frequently requested URLs that were missing from the original inventory.
Maintain a recurring report for redirect hits, 4xx responses, 5xx responses, destination status codes, chains, and traffic changes. The redirect monitoring metrics guide provides a framework for making that review repeatable.
Common mistakes
- Redirecting everything to the homepage: This loses context and makes it harder for users and crawlers to find the intended content. Map to the closest relevant destination.
- Using a temporary redirect for a permanent move: Choose 301 when the old URL has permanently moved, unless there is a documented reason to use another code.
- Creating rules in the wrong order: A broad catch-all rule can intercept a specific mapping. Put exceptions first and test overlaps.
- Redirecting to another redirect: Update old rules so they point directly to the final canonical URL. A redirect audit should flag these paths.
- Ignoring hostname and protocol variants: Test HTTP, HTTPS, www, non-www, old subdomains, and alternate ports where they were previously accessible.
- Dropping useful query parameters: Confirm how campaign links, partner links, and QR code destinations behave after the move.
- Forgetting non-HTML URLs: Check PDFs, images, feeds, API endpoints, and downloadable files when they are linked externally or used in search.
- Leaving test controls active: Remove staging noindex settings, temporary bypasses, and debug routes before the production launch.
- Trusting a single spot check: A homepage test cannot validate a complex migration. Sample every rule family and inspect crawl and server data after release.
When to revisit
Use the mapping spreadsheet before every domain consolidation, redesign, CMS change, URL restructuring, or seasonal content refresh that alters addresses. Re-run the checklist at launch, then at approximately one day, seven days, and thirty days after release. Those reviews should look for new 404s, redirect chains, loops, unexpected destination changes, lost campaign parameters, and important backlinks still pointing to unresolved URLs.
Refresh the implementation examples when a CMS, hosting platform, CDN, or server configuration introduces a routing change that affects redirect behavior. Recheck canonicalization and search-engine migration guidance when official documentation changes or when analytics and crawl data show an unexplained migration-related decline. Add new checker or monitoring integrations when the tools your team relies on change their features.
For the next audit, begin with three actions: export the latest requested URLs, compare them with the mapping, and test the highest-value exceptions first. Then update the spreadsheet with the result, owner, date, and next action. This turns a one-time migration plan into ongoing link management that can help preserve useful backlinks and keep the site’s URL structure understandable.