Free tool / Redirects, status codes and headers
Redirect Map Generator: Match Old URLs to New for a Migration
Paste your old and new URLs. The tool matches them by path and slug, scores each match, lets you fix any of them, then exports .htaccess, Nginx or CSV.
How to use the redirect map generator
Two lists in, one redirect map out. Check the weak matches before you export.
Paste both URL lists
Old URLs on the left, from your sitemap, analytics or a crawl. New URLs on the right, from the new site or staging.
Review the matches
Each old URL gets its best match and a score. Filter to "Check these" and change any match from the dropdown.
Export the map
Download .htaccess or Nginx rules, a plain CSV, or a CSV ready to import into the WordPress Redirection plugin.
What the match scores mean
The score shows how the old and new URLs were matched, so you know which ones to check.
| Score | How it matched | What to do |
|---|---|---|
| 100 | Same path on both sites, for example after a domain change | Nothing, unless the content moved |
| 92 to 98 | Same slug (last part of the URL) in a different folder | A quick look is enough |
| 80 to 91 | Most of the words in the slug match | Spot-check a few |
| 50 to 79 | Some words match | Check each one by hand |
| Under 45 | No good match found, shown as unmatched | Pick a page, or use the fallback |
What is a redirect map?
A redirect map is a list that pairs every URL on your old site with the URL that replaces it on the new one. It's the most important document in a site migration, because it decides whether visitors, links and search rankings follow you to the new site or end up on error pages.
The map turns into your redirect rules: one 301 redirect for each old URL, pointing at its new location.
Why migrations lose traffic
Most of the traffic lost after a redesign or platform change comes from URLs that changed without a redirect. The old URLs are still in search engines' indexes, other websites still link to them and people still have them bookmarked. Without a redirect, they all end up on a 404 page.
A good map keeps those visits. A 301 redirect tells search engines the page has moved for good, so over time the new URL can take the old one's place in the results.
Building the old URL list
Your old list should be as complete as you can make it. Gather URLs from several places and combine them:
- The old XML sitemap, which lists every page the site wanted indexed.
- Analytics, for landing pages that got traffic in the last year.
- Google Search Console, for pages with impressions and pages that other sites link to.
- A crawl of the old site, to catch pages that are linked but missing from the sitemap.
Remove duplicates before you paste. This tool also skips blank lines and repeated URLs.
Matching URLs well
When slugs stay the same or close to it, automatic matching does most of the work. It can't know that "press-release-2018" now lives under "news", or that two old pages were merged into one. That's why every match has a score and a dropdown.
- Check every match under 80 manually.
- Redirect to the closest equivalent, not the homepage. A removed product can go to its category.
- Merged pages are fine. Several old URLs can all point to one new URL.
- Avoid chains. Point each old URL at the final new URL, not at another URL that redirects again.
After launch
Upload the rules as soon as the new site goes live, then test a few old URLs from each section. Keep an eye on Google Search Console for a few weeks: the Pages report shows new 404 errors, and the performance report shows whether traffic is moving to the new URLs.
Update your own internal links as well, so they point straight at the new URLs instead of relying on redirects. The free Crawlfree website crawler finds internal links that still go through redirects or lead to broken pages, across the whole new site in one crawl.
Redirect map generator: questions
Short answers about how this tool works. Something missing? Ask us.
Where do I get the list of old URLs?
Combine your old XML sitemap, the pages with traffic in your analytics, the pages with links in Google Search Console, and a crawl of the old site. Do this before the old site goes offline.
Should I redirect every unmatched URL to the homepage?
No. Google treats many redirects to the homepage like a 404 page. Redirect to the closest page you have, such as a category, and let truly dead pages return 404 or 410.
How does the matching work?
It compares the paths and slugs of the URLs, ignoring the domain, file endings such as .html and words like "and" or "the". It doesn't read page content, so always check matches under 80.
How many URLs can I match?
Up to 2,000 old and 2,000 new URLs at a time. For a larger site, match one section at a time, such as the blog, then the products.
How do I import the map into WordPress?
Install the Redirection plugin, go to Tools, Redirection, Import/Export, and import the "WordPress Redirection CSV" file. Each row becomes a 301 redirect.
Is anything I enter sent to you?
No. The matching runs in your browser. Your lists and choices are kept in your own browser so they are still there when you come back.
Related free tools
All free tools →Redirect checker
Trace every hop of a redirect chain, up to 50 URLs.Checks a live URLHTTP status checker
Bulk-check the status code of up to 50 URLs.Checks a live URLHTTP header checker
See every response header, with SEO and security notes.Checks a live URLSSL checker
Check the certificate, its expiry date and HTTPS redirect.Checks a live URLCrawl the new site before and after launch
Crawlfree audits every page in one crawl. Free for Windows, no sign-up, unlimited URLs.