Map Extract
Free tool

Redirect map generator for a website rebuild

When a site is rebuilt, the old addresses still sit in Google, in directories and in old emails. Paste the old and new URLs, or let the tool pair them up, and get redirect rules for your server or host with chains, loops and duplicates sorted out first.

Runs in your browser. Nothing you enter is uploaded.

Building the redirects

  1. Pick how you are starting

    I have old and new URLs in pairs for a list you already wrote. Match old URLs to new ones for me if you only have two lists. Moving the whole site to a new domain for a rename.

  2. Paste the addresses

    Pairs go one per line as old,new, old new or old -> new, with an optional third column for the status code. In matching mode, put old URLs on the left and new ones on the right.

  3. Choose the server and status

    Ten outputs are offered, from Apache .htaccess and Nginx to Netlify _redirects, vercel.json, Cloudflare bulk redirects, IIS web.config, Next.js, the WordPress Redirection plugin and plain CSV. Use 301 permanent unless the move is temporary.

  4. Let it flatten chains

    With Point chains straight at the final page and drop loops ticked, A to B to C becomes A to C, and loops are removed.

  5. Download and test

    Download the file for your server, or every format in one ZIP. After deploying, open a few old addresses: each should land on the new page in one step.

Example: a heating engineer's rebuilt site

A plumbing and heating firm (fictional) moved from .html and .php pages to tidy folders, then renamed one service page again during the build. Its pair list has a chain, a duplicate with two different targets and a page pointing at itself. The tool reports all three and writes three clean Apache rules.

Input
old,new
/plumbing.html,/services/plumbing
/services/plumbing,/services/plumbing-and-heating
/heating.php,/services/heating
/heating.php,/services/boilers
/contact-us,/contact-us
Result
✗ /heating.php has two different targets; the first one is kept.
✗ /contact-us redirects to itself.
! Chain of 2 hops from /plumbing.html; pointed straight at /services/plumbing-and-heating.

# 3 redirects
Redirect 301 /plumbing.html /services/plumbing-and-heating
Redirect 301 /services/plumbing /services/plumbing-and-heating
Redirect 301 /heating.php /services/heating

Matching mode and domain moves

Matching compares the last part of each address after removing extensions and punctuation, and pairs an old URL with the most similar new one when they are at least 82% alike. In a test, /services/boiler-repair.html matched /services/boiler-repairs at 99% and /about-us.php matched /about at 93%, while /news/old-post found nothing close and was marked no close match: add by hand. Always read the match table; similar names are not always the same page.

For a domain move, one wildcard rule sends every old address to the same path on the new domain, for example RewriteRule ^(.*)$ https://www.newname.example/$1 [R=301,L] for Apache. Put it on the old domain's hosting and keep that domain registered, or the redirects stop when it lapses.

Questions people ask

Should I use a 301 or a 302 redirect?

Use 301 for a page that has moved for good, such as after a site rebuild or a domain change; it tells search engines to transfer the old page's standing to the new one. Use 302 only when the move is temporary, such as a seasonal page you will bring back.

What is a redirect chain and why fix it?

A chain is when an old address redirects to another address that redirects again before reaching the final page. Each hop slows the visit, and long chains may not be followed all the way. Pointing every old address straight at its final page avoids that, which is what the flatten option does.

Which old URLs need redirects after a rebuild?

Any address that had visitors, links or search traffic: take them from your old sitemap, your analytics landing pages and Google Search Console's pages report. Pages with no traffic and no links can be left to return a 404, but redirecting the main service pages is essential.

Does the tool check whether the new pages exist?

No. It works on the addresses you paste and never visits either site. After deploying the rules, open a handful of old addresses in a private window and confirm each one answers 301 and lands on the right page in one step.

Where your data goes

Old and new addresses are matched, checked and written out as rules locally. Neither the old site nor the new one is visited, and your URL lists are not transmitted.

Checked against the tool on

Top