Skip to content
FastTool

Redirect Map Generator

Moving a site to new URLs? Paste the old and new URL lists. The tool matches each old page to its new address, flags redirect chains, loops, clashes and lost query strings, and gives you 301 rules for _redirects, Nginx, Apache, Cloudflare and Webflow, plus a test script. Runs in your browser. Nothing is uploaded.

Loading the redirect map generator…

How to use it

  1. Get a list of your old URLs: the old sitemap.xml, a crawler export with a URL or Address column, or a plain list.
  2. Get the same for the new site, for example from its staging sitemap.
  3. Paste both lists and choose Build redirect map.
  4. Look at the rows marked check by hand. If a match is wrong or missing, add your own line to the optional CSV box (old_url,new_url,status_code,notes) and build again.
  5. Download the file for your server, put it on a staging site and run the redirect test script before launch.

Worked example

Choose Load example, then Build redirect map. The example moves a small shop from old.example.com to www.example.com: 16 old URLs from a sitemap, 13 new URLs from a crawl CSV and 8 redirects typed in by hand.

Result: 14 of 16 old URLs matched, 4 ready rules, 12 rows to check by hand.

Two lines from the downloaded _redirects file. The hosts differ, so each rule keeps the full new URL:

/products/blue-shoes https://www.example.com/shop/blue-shoes 301
/guides/har-file-sanitizer https://www.example.com/tools/har-file-sanitizer 301

How it works

Clean-up before matching. Host names are lowercased, trailing and double slashes are ignored, and tracking parameters such as utm_source, gclid and fbclid are dropped. Other query parameters count, because ?id=42 can be a different page.

Scoring. Each old URL is compared with every new URL. The same path and query scores 100%. Otherwise the score adds up shared words in the path (42%), a similar last segment (18%), shared folders (12%), a similar depth (10%), the same file type (8%) and shared query keys (5%), with a bonus for an identical file name.

One new page per old page. The best pairs are taken first, and each new URL is used once. 76% and up is high confidence, 55% to 75% medium and 25% to 54% low. Below 25% there is no match.

What goes into the server files. Only high-confidence matches and your own redirects that have no problems. A row waits for you when:

Those rows stay in the CSV map and the checklist. An old URL that is exactly the same on the new site needs no redirect, so it is listed but left out of the server files.

Questions

Should I use a 301 or a 302 redirect?

Use 301 (or 308) for a permanent move, so browsers and search engines treat the new URL as the address. Use 302 or 307 only when the move is temporary. The tool writes 301 unless you set another code in your own redirects.

Should I redirect deleted pages to the home page?

No. Redirect an old URL only to a page that answers the same need. If nothing on the new site does, let the old URL return 404 or 410. Sending everything to the home page confuses visitors, and Google may treat those redirects as missing pages anyway.

How long should the redirects stay in place?

At least a year, and longer while other sites still link to the old URLs. Google's site-move guidance gives the same advice.

Which file does my host need?

The _redirects file works on Cloudflare Pages and Netlify: one rule per line, old path, new URL and the status code. Cloudflare Pages reads up to 2,000 rules from it; for more, use the Cloudflare CSV below. On Netlify, add ! after the code (301!) if a file for the old path is still in your site. The Nginx file goes inside your server block, and the Apache file in the site config or .htaccess. Import the Cloudflare CSV into Bulk Redirects, and use the Webflow CSV for Webflow's 301 redirect settings (it holds 301 rules only). Put the rules on the server that answers the old URLs.

How do I test the redirects after launch?

Run the test script with Playwright (npx playwright test) against staging, and again after launch. Each test checks the status code, the Location header and that the new page loads. Then crawl the old URL list and fix any 404s or chains, and watch your server logs for a few weeks.

Does it fetch my sitemap or crawl my site?

No. It reads only what you paste, so nothing is fetched or uploaded. For a sitemap index, open each child sitemap and paste its URLs, or paste a crawl CSV.

Limits

The tool compares URL text, not page content, so moves like /pricing to /plans need your own redirect. It takes up to 2,500 URLs per list; split a bigger site by folder. It doesn't visit your site, so test the rules on staging before launch.

Sources and further reading

Planning the whole move? Read how to plan 301 redirects for a site move. Changing page titles at the same time? Preview them with the Google Snippet Preview.