Redirect map builder
Turn a list of old and new addresses into 301 redirect rules for Apache, nginx or Shopify, with chains, loops and duplicates pointed out. Built in your browser.
The rules
Type or paste your pairs of addresses.
Why a move needs a redirect map
When a site moves to another platform, most of its addresses change. A product that lived at one address now lives at another. Every link to the old address, from a search result, another site, an email or a bookmark, reaches a page that is not there, unless the old address answers with a redirect to the new one.
A redirect map is the list of those pairs: each old address and where it now leads. This tool turns the list into rules a server can read, and points out the pairs that would not work.
Making the list
- Collect every address the old site answers at. Its sitemap, usually at
/sitemap.xml, is the place to start. Add the pages that get visits or have links from other sites, if you can see those. - Put them in the first column of a spreadsheet.
- In the second column, write the address of the same page on the new site.
- Where a page has no counterpart, choose the nearest page that answers the same need, not the home page.
- Paste both columns here.
What it leaves out, and why
- An old address listed twice. One address can lead to only one place.
- A chain. If one old address leads to another that is also redirected, a visitor is sent through two hops. The tool tells you where the chain ends, so you can point the first address straight there.
- A loop. Two addresses that send a visitor to each other never load.
- An address with a query string. These rules match the path alone.
Each rule matches its old address exactly, with or without the final slash. It does not catch longer addresses that begin the same way.
After the rules are in place
Test a handful of old addresses with the redirect checker. Each should answer 301 and reach its new address in one hop. Keep the redirects for as long as the old addresses are linked from anywhere, which in practice means years.
Moving platform and want the map made and checked for you? See platform migrations.
Common questions
Where do the rules go: on the old site or the new one?
Should I redirect every old page to the home page?
Why 301 and not 302?
My new site runs on WordPress. Can I use a plugin instead?
Moving a site and want the redirects done for you?
Tell us what the site is on and where it is going. We reply with what moves by itself, what has to be rebuilt, and a fixed quote.
Get a free migration assessment
