How to use Redirect Mapping Generator
- Paste the old URLs in the first box and the new URLs in the second, one per line, or load crawl export CSV files with an Address or URL column.
- Set the minimum match score and, if you want, a fallback URL for pages with no good match, then press Match URLs.
- Review the table. Sort out medium and low confidence rows and unmatched ones with the filter, edit any new URL or pick an alternative.
- Choose the redirect type and download the CSV, the .htaccess rules or the Nginx map. Test a sample of the redirects before launch.
Features
- Matches by path and slug: word overlap (Jaccard) plus last-segment similarity (Levenshtein), with identical paths scoring 1
- Confidence for every pair, the top alternatives, and editable new URLs for manual overrides
- Adjustable minimum score and an optional fallback URL
- Reads plain lists or crawl export CSV files, keeping only status 200 rows for the new list
- Checks for duplicate old URLs, identical paths, redirect chains and the home page
- Exports CSV, .htaccess RedirectMatch lines and an efficient Nginx map, plus the unmatched list
- Handles old URLs that differ only by query string, and never uploads your URLs
Examples
| Input | Result |
|---|---|
| Old: /blog/seo-tips.html. New list includes /articles/seo-tips | Match /articles/seo-tips, score 0.70, medium confidence — Score = 0.6 × word overlap of the paths + 0.4 × similarity of the slugs. |
| Old: https://old.com/a/b.html. New: https://new.com/a/b/ | Exact path match, score 1 — The domain is ignored and extensions and trailing slashes are normalized. |
Limitations
- It compares names in URLs, not page content. Similar words do not guarantee the same topic, so review every medium and low match.
- Unmatched pages need a human decision. Sending many old pages to the home page may be treated as a soft 404, so prefer a close page.
- The home page is never exported as a rule, and redirect chains and loops are flagged but not fixed for you.
- Rules are for exact paths. The Apache output uses RedirectMatch for paths and RewriteCond for query strings, and Nginx uses a map, which needs the http context.
- Very large lists, such as tens of thousands of URLs, may take a few seconds to match and should be tested in a staging setup first.
Learn more
A redirect map is the heart of a site migration. When URLs change because of a redesign, a new platform, a domain move or a restructure, every old URL that had links or rankings should point to the closest matching new URL with a permanent redirect. That keeps visitors on relevant pages and lets search engines transfer the old pages' signals to the new ones. Building the map by hand is slow on large sites, so this tool suggests matches from the URLs themselves. Paths are split into words, compared by overlap, and the last segment, the slug, is compared by edit distance, so renamed folders or changed extensions still match. That works well when the slugs stay similar and poorly when content was renamed or merged, which is why every match carries a confidence and can be edited.
Before launch, check the map against your crawl: every old URL should appear once, targets should return 200 and should not redirect again, and the home page should stay out of the list. After launch, verify a sample with a redirect checker, watch Search Console for errors, and keep the redirects for at least a year, as Google's site-move guidance recommends.
Frequently asked questions
What is a redirect map?
It is a list that pairs every old URL with the new URL that replaces it. You use it during a site migration so each old page redirects to its closest new page instead of a generic one.
How does the matching score work?
It combines how many words the two paths share with how similar the last segments (slugs) are. Identical paths score 1, and the score falls as the words and slugs differ.
What should I do with low-confidence matches?
Open the old and new pages and decide. Edit the new URL, pick an alternative, or clear the field to leave the page unmatched and handle it separately.
Should unmatched pages redirect to the home page?
Usually not. Google may treat mass redirects to the home page as soft 404s. Redirect to the closest relevant page, or let the page return 404 or 410 if nothing replaces it.
Are my URLs uploaded?
No. The matching runs in your browser and nothing is sent to a server.
Sources
- Google Search Central: site moves with URL changes
- Google Search Central: redirects and Google Search
- Nginx: ngx_http_map_module
Last reviewed: October 1, 2026