How to Build and Test a Redirect Map for a Website Migration
If an old comparison page already redirects to a newer one, put both addresses in the migration inventory. Newsletters, bookmarks, and other sites may still point to the older URL, even if it no longer appears anywhere on your site. The redirect map should say what happens when someone requests each address after launch: it redirects straight to a specific replacement, stays live as-is, or returns a deliberate 404 or 410.
1. Build an inventory that goes beyond the current sitemap
Take a snapshot of the live site before changing domains, switching CMS platforms, or reorganizing URLs. Start the crawl at the home page and feed it the URLs in the current XML sitemap. Export each original URL, its HTTP status, any redirect destination, and the page title. The sitemap gives you a starting list, but it usually leaves out retired addresses and pages the site no longer links to.
Cross-check the crawl against sources that can surface those missing URLs:
- CMS exports: Look for published pages, previous slugs, category archives, and files with public addresses. Include a stable content ID if one is available. It can help you match the same review across platforms even when both the title and slug change.
- Analytics and search performance data: Pull landing-page data over a period long enough to capture seasonal demand. A credit union CRM comparison consulted during annual procurement planning might barely show up in a short snapshot.
- Access logs: Look for requests to old paths, downloadable files, and URLs with query parameters. Logs can show requests that page-view analytics miss, including those that never load a page.
- Backlink reports and existing redirect rules: Collect legacy aliases, addresses linked from other sites, and old hostnames. These are easy to miss when switching from a no-code builder to a CMS that doesn't import routing rules.
Keep each URL exactly as you found it. If you need to group variants, add a separate normalized column rather than overwriting the source. Stripping every query string or lowercasing every path can erase meaningful differences. A tracking parameter might leave a review unchanged, while a directory filter can show a different set of tools. Case and trailing slashes can also affect routing, depending on the platform. Test the variants before treating them as duplicates.
2. Record decisions in a map you can audit
Give each old URL its own row in the working map. Keep this map separate from the file you import into the redirect tool: an editor needs enough context to judge the match, and an engineer needs enough detail to test it. Record an explicit decision for every row: redirect, keep, return 404, return 410, or needs review. An empty destination field doesn't tell you what was decided.
Alongside the old URL and its current status, record the decision, final destination, expected status after launch, reason for the match, and test result. Assign an owner to unresolved rows and flag URLs with meaningful traffic, backlinks, or business value. If the move involves multiple domains, keep the hostname in both the source and destination columns. Two hosts can use the same path for different pages.
| Old path | Expected response | Final path | Reason |
|---|---|---|---|
| /reviews/form-builder-a/ | 301 | /no-code/form-builder-a-review/ | Same product review in a new section |
| /best-cu-crm/ | 301 | /crm/credit-union-crm-comparison/ | Same audience and comparison scope |
| /crm/glossary/ | 200 | Unchanged | Same public URL after a CMS switch |
| /downloads/retired-crm-pricing-sheet.pdf | 410 | None | Deliberately withdrawn; no replacement |

3. Match what the page delivers, not just its slug
Start with the one-to-one moves. If a review still covers the same product for the same purpose, redirect to it even if the headline has changed. A similar slug is weaker evidence: the new page may cover a different product tier or speak to a different audience. A general CRM ranking, for instance, doesn't automatically replace a credit union CRM comparison that evaluates member data management and multichannel service.
Consolidated and split pages
Several old addresses can share a destination if the new page still does what readers came to each old page for. Two no-code builder comparisons might become one page with separate sections for standalone form tools and broader app builders. Check that the combined page retains the relevant products and evaluation criteria. A passing mention of form tools isn't a replacement for a comparison of them.
A split poses the opposite problem: a redirect can send a request to only one destination. If an old guide covered both app building and workflow automation, an overview that points readers to both new guides may be a better replacement than either guide on its own. If there's no overview, compare the old page's main purpose with what each new page offers. Traffic and backlink data can help explain why readers visited, but they can't make an unrelated destination relevant.
Retired pages, filters, and files
If there's no useful substitute, return a real 404. Use a 410 when the resource has been deliberately and permanently withdrawn. A custom error page can still help visitors find current comparisons without returning a success status. Redirecting every deleted URL to the home page makes missing mappings harder to spot, leaves visitors guessing, and may be treated by search engines as a soft 404.
Handle directory parameters based on what they actually do. If a parameter selected a distinct view and the new site offers an equivalent, map that view explicitly. If it only tracked a campaign, decide whether attribution needs to survive the move and test the resulting URL. Don't pass old parameters through by default: a name the old builder ignored could trigger filtering or pagination on the new platform.
List PDFs and other linked assets separately from HTML pages. A CRM evaluation worksheet should redirect to the replacement file or, where appropriate, to a page where it's easy to find. Test links to specific sections, too. The browser doesn't send the fragment to the server, so a redirect rule can't tell two requests apart by their old section anchors. Keeping the relevant anchor IDs on the destination can preserve those links.
4. Turn approved rows into rules the platform can run
Use permanent redirects for permanent moves. A 301 is a practical default for public reviews, directories, and comparisons requested with GET. A 308 is permanent too, but it preserves the request method. Treat form submissions, login flows, and API endpoints as a separate migration task. A client may turn a POST into a GET after a 301, whereas a 308 can resend the POST to the destination.
Exact-match rules are easy to audit and make exceptions explicit. Thousands of individual rules, though, may hit platform limits or become hard to maintain by hand. A pattern rule is more compact when an entire directory moves and its slugs stay the same. The trade-off is that it can also catch retired or mistyped paths and send them to pages that don't exist. Where the platform supports it, put explicit exceptions ahead of broad rules and test that they take priority.
Check how the new CMS, hosting provider, or edge routing layer actually matches requests. Some tools look only at the path; others distinguish hostnames, and some ignore query strings when choosing a rule. Verify import limits, trailing-slash behavior, and which rules take precedence when both the platform and CMS handle redirects. If an old address already redirects to an intermediate slug, replace the chain with a direct redirect to the final page.
During a domain move, the old hostnames still need to resolve and accept requests. Keep the old domain registration and DNS in place, along with valid HTTPS certificates for the hosts that served public pages. An expired certificate can block a visitor before the browser ever receives the redirect. Test the hostname variants people actually used; don't assume the bare domain and its www version route the same way.
5. Test the map before launch, then test the public routes
Check every approved destination against a crawl or export of the new site. Flag missing targets, duplicate source rows with conflicting decisions, self-redirects, and destinations that point back to the old site. For public pages that should appear in search, confirm that the launch configuration makes them accessible and indexable. Staging may intentionally block indexing or require authentication; check that those restrictions won't carry over to production.
If possible, send HTTP requests through the configured rules before cutover. A temporary test host or local hostname override can work if it uses the same routing logic and host matching as production. Verify with GET. HEAD is useful for a quick check, but some stacks handle it differently. Record the first response status and Location header, then follow the redirect and record the final URL, status, and number of hops. A final 200 isn't enough: an unrelated landing page or a branded error screen can return 200 as well.
- Test exact matches: Confirm that each approved redirect reaches the intended page in one hop on the site's supported canonical route.
- Test pattern boundaries: Try real old slugs, explicit exceptions, and nonexistent paths that should stay missing. Include relevant query strings and trailing-slash variants.
- Test rows that shouldn't redirect: Confirm that unchanged URLs still return 200 and retired URLs return the planned 404 or 410 instead of getting caught by a blanket rule.
- Open priority destinations: Check that the expected comparison, download, filtered view, or section is actually there.
Update internal links, menus, and sitemap entries to point straight to the final addresses. If the launch is phased, wait until a replacement is public before activating the old URL's redirect. Save the exact production rule export with the approved map so you can trace later fixes back to what went live.
6. Use launch traffic to catch gaps in the inventory
After cutover, repeat the tests against the live old hosts. Production certificates, edge caches, and CMS routing can behave differently than they did in staging. Check priority pages and each rule type first, then run the full set. After correcting a rule, retest with a fresh client and account for edge caching. Browsers that already received a permanent redirect may still use it.
Read requests to the old hosts alongside errors on the new site. A recognizable slug, a referral, or a history of visits can help separate a missed mapping from routine requests for paths that never existed. Keep useful permanent redirects in place long term where practical. A URL printed in a procurement guide or saved in a member-service team's documentation can still get visits long after search listings have changed.
Say the first log review turns up requests for an old comparison PDF that wasn't in the CMS export. Find the actual replacement before adding a rule, then request the original HTTPS address and check that it leads directly to the usable file or its download page. If the obsolete filename includes a version number, make the exception specific to that file rather than redirecting the entire downloads directory.