Tools

Redirect Mapping Tool

Use this redirect mapping tool to match broken or old URLs to the best live page on your site. Paste your list of 404 URLs or upload a CSV, then give us your sitemap; each URL gets its three best candidates with a confidence score, and the 301 rules are ready as .htaccess, nginx, CSV or JSON. Matching runs in your browser. Free, no sign-up.

Broken URL → live page matchingup to 5,000 rows · runs in your browser
Matching runs in your browser; your list of broken URLs is never sent to a server.
An export from Search Console, a crawler or your server logs works; the URL column is detected automatically.
2. Target pages
A sitemap index works too; child sitemaps are read and up to 5,000 URLs are used. If you enter only the site address, the sitemap is found through robots.txt.
On low confidence

The score combines TF-IDF similarity of the slug words, word overlap (Jaccard) and spelling distance (Levenshtein). The same folder raises it, a different language prefix lowers it. 75% or more is high, 50% to 74% is medium confidence.

Result

Redirect map Waiting
Broken URLs0unique rows
High confidence075% or more
Medium050% to 74%
Low0below 50%
Warnings0chain, loop, soft 404
Enter the broken URLs and choose the target pages; suggested 301 redirects and ready rules will appear here.
Written by
  • Digital Marketing Expert
  • Google Partner
  • Full Stack Developer
Last updated
Based on
5 sources

How to use the Redirect Mapping Tool

  1. Add the broken URLs

    Paste your broken or old URLs into the first box, or upload a CSV or TXT file. The tool reads full URLs, /paths and domain.com/path lines, and it finds the URL column in a CSV on its own.

  2. Choose the target pages

    Type your sitemap or site address under Sitemap. If you have no sitemap, paste your live URLs under Paste list, optionally with page titles.

  3. Set the low confidence rule

    Suggest category or homepage offers the closest parent category for weak matches. Leave empty (404) keeps those rows without a redirect instead.

  4. Press Match and review the table

    The tool lists the three best candidates for each URL with a confidence score. Use the filters to focus on Low and Warnings rows, then pick another candidate, a 410 or your own URL from the dropdown.

  5. Export the rules

    Pick .htaccess, nginx, CSV or JSON as the output. Then copy or download the rules and test them on a staging server first.

How does the redirect mapping tool score a match?

First, the tool splits each URL into parts: language prefix, folders and slug. Then it drops dates, numeric IDs, file extensions and stop words such as the, and, und or ve, and it simplifies letters such as ı, ş, ü and ß. Finally, it compares the remaining words with this formula:

TF-IDF similarity (50% weight)cosine(source, target); slug 1, nearest folder 0.5, query 0.9, title 0.8
Slug overlap, Jaccard (20%)shared words / (source words + target words - shared words)
Spelling distance, Levenshtein (30%)1 - edit distance / length of the longer slug
Folder and language adjustmentsame folder +0.08; same first folder +0.04; different language prefix -0.20
Same slugat least 0.98 in the same folder; elsewhere at least 0.90, or 0.70 for a one word slug
Chain penalty-0.25 when the target also appears in the broken list
Confidence class0.75 or more high; 0.50 to 0.74 medium; below 0.50 low

Word matching is flexible: suffix variants such as product and products count as 0.85, one letter typos as 0.80 and compound parts such as laufschuhe and schuhe as 0.60. The tool also treats the German spellings ae, oe and ue as ä, ö and ü.

Example URLs and the suggested targets

These rows are real results from the sample store data that the Try an example button loads.

Broken URLSuggested targetScoreConfidence and note
/urun/nike-air-max-270-siyah.html/urunler/ayakkabi/nike-air-max-270-siyah/97%High: extension removed, folder change ignored
/blog/2019/05/seo-nedir/blog/seo-nedir/100%High: date folders removed
https://eskisite.com/products/running-shoes/en/products/running-shoes/98%High: redirect to another domain
/en/contact-us/en/contact/66%Medium: language prefix kept
/de/über-uns/de/ueber-uns/99%High: ü and ue treated as equal
/urunler/saat/casio-g-shock-eski-model/urunler/saat/casio-g-shock-ga-2100-siyah/60%Medium: close second candidate warning
/p/98765Homepage (/)noneLow: soft 404 risk warning

Scores depend on the target list; the same broken URL can produce a different result with another sitemap.

Which status code should each old URL return?

A redirect plan gives every old URL one of three answers. The table shows how Google reads each code and where you find it in the tool.

CodeWhen?What Google doesIn the tool
301The content lives permanently at a new URLTreats it as a strong signal that the target should be canonicalCandidate or your own URL
308Like 301, keeps the request methodTreats it as a permanent redirect, like 301Rules output 301
302, 307Temporary move, the old URL returns laterTreats it as a weak canonical signalNot generated
410The content is gone for good and has no equivalentHandles it the same way as 404410 (permanently removed)
404The URL never existed or you have not decided yetIgnores the content and drops the URL over timeNo redirect (keep 404)
Bulk 301 to the homepageA pattern to avoidMay treat it as a soft 404Homepage suggestion, with a warning

Source: Google Search Central documentation on redirects and HTTP status codes. Google's behavior can change; check the current documentation before critical decisions.

What is a redirect mapping tool and when do you need one?

A redirect mapping tool matches broken or old URLs to the closest live page on your site. After a migration, a redesign or a new URL structure, hundreds of old URLs start returning 404. Finding a target for each one by hand takes hours. This tool cuts that to seconds, because it compares every old URL with every page in your sitemap.

For each row you get three candidates, a confidence score and a warning where needed. Then you export your choices as .htaccess, nginx, CSV or JSON. The matching runs in your browser, so your list of broken URLs never reaches our server. Our server only reads the sitemap you name.

Think of the result as a fast first draft, not a final decision. High scores are usually right, but you should always review the medium and low rows. At Talha Aslan and the team, we use this list as the first draft in our SEO consulting projects and make the final call after looking at the actual pages.

Where do you find the list of broken URLs?

A good redirect plan starts with a complete list of old URLs. The most reliable source is a full URL inventory from before the migration. If you do not have one, combine several sources:

  • Search Console: the Not found (404) rows in the Page indexing report, plus old URLs that still earn clicks in the Performance report.
  • Crawler: an archived sitemap of the old site or an export of a crawl you ran before launch.
  • Server logs: URLs that return 404 but still get visits or bot traffic.
  • Backlink reports: old pages that other sites link to.

You can upload these files straight into the tool. It finds the URL column in a CSV or a tab separated file from the header name or from the content. It also merges duplicates and skips invalid lines. To see the broken links on a single page, use our broken link checker as well.

How does the redirect mapping tool score URLs?

First, the tool splits every URL into meaningful words. For example, it strips the date folders from /blog/2019/05/what-is-seo and removes the number and extension from /product/12345-red-sneaker.html. As a result, it compares only the words that describe the topic.

Then it combines three measures. TF-IDF similarity comes first: words that are rare on your site weigh more than words that appear on every page. Next, Jaccard overlap looks at the share of words two slugs have in common. Finally, Levenshtein distance catches spelling differences and abbreviations.

After that, structure adjustments apply. A target in the same folder gets a small bonus, while a different language prefix lowers the score. That way, a page under /de/ rarely lands on an English target. A target that also sits in your broken list gets a penalty, because a redirect to it builds a chain. A score of 75% or more means high confidence, and 50% to 74% means medium.

What should you do when the confidence is low?

A low score means your site has no clear page that covers the topic of the old URL. By default, the tool then suggests the nearest parent category, or the homepage if no category exists, and adds a soft 404 risk warning to the row.

The warning follows Google's own advice. In its site move guide, Google recommends that you avoid redirecting many old URLs to one irrelevant destination such as the homepage. Such redirects can count as soft 404s. In that case, visitors do not find what they wanted, and the old page's signals do not pass to the new one.

For a low confidence row, follow this order:

  1. Check the three candidates in the dropdown; sometimes the second one is right.
  2. If you know a fitting page, enter it with Enter another URL.
  3. If no similar content exists, choose 410 or keep the 404.

For a bulk change, set On low confidence to Leave empty (404) above the button. Then weak matches never reach your rules, and you add only the rows you are sure about.

How do you choose between 301, 410 and 404?

The choice depends on whether the content has an equivalent on the new site. If the content moved, or a new page answers the same question, a permanent 301 redirect fits. Google's redirects documentation describes a permanent server side redirect as a strong signal that the target should be canonical.

If the content is gone for good and nothing similar exists, a 410 is the honest answer. In practice, Google handles 404 and 410 the same way; both let the URL drop out of the index over time. Still, a 410 records that you and your team made that decision on purpose.

On the other hand, keeping a 404 is not always a mistake. Writing redirects for URLs that never had traffic or links and whose topic no longer exists only bloats your rules file. In short, 301 is for valuable old pages; for the rest, 410 or 404 gives a cleaner result.

How do you add the .htaccess and nginx rules?

On Apache and LiteSpeed servers, you add the rules to the .htaccess file. The tool writes RedirectMatch instead of plain Redirect. According to Apache's mod_alias documentation, Redirect matches prefixes, so a rule for /product also catches /products/shoes. RedirectMatch, by contrast, uses ^ and $ to match only that URL and treats the trailing slash as optional.

RedirectMatch cannot catch old URLs with query parameters such as index.php?page=about. Therefore the tool writes a separate mod_rewrite block for those rows. Place the rules above your WordPress or CMS rules; otherwise the CMS answers the request first.

For nginx, the tool writes one map block and a single if line. The map block goes inside http { } and the if line inside the matching server { }. Then test the configuration with nginx -t and reload the server. Once the rules are live, check a few URLs with our redirect checker; you should see a single 301 hop to the right target.

Why do chain and loop warnings matter?

A chain means that one URL redirects to another redirect, which then redirects again. According to Google's HTTP status code documentation, Googlebot follows up to 10 redirect hops. Even so, every hop slows crawling and makes visitors wait.

The tool flags two cases. A chain warning tells you that the target you picked also appears in your broken list; in other words, that target either returns 404 or will redirect itself. In that case, pick the final destination directly. A loop warning shows that source and target are the same URL. The tool writes no rule for that row, because the browser would enter an endless redirect.

In addition, if a URL from your broken list shows up as live in your target list, the tool leaves the row without a redirect and warns you. This usually means that one of your lists is out of date. Above all in large migrations, use these three warnings as your last check before launch.

How do you build a redirect plan for a site migration?

Build the redirect plan before launch, not after it. First, export the full URL list of the old site together with traffic, link and conversion data. Next, prepare the sitemap of the new site and match both lists with this tool. Then verify the URLs with the most traffic and links by hand.

On launch day, add the rules and test sample URLs. Submit the new sitemap in Search Console. Also update your internal links; even when a redirect works, an internal link should point straight to the final URL. Our XML sitemap generator helps you prepare the new URL list.

In its migration guide, Google recommends keeping redirects for as long as possible, generally at least one year. For a step by step list, read our website migration SEO checklist. We also explain how to move content safely in our content migration strategy guide.

Common redirect mapping mistakes

  • MistakeRedirecting every 404 to the homepage.Do this insteadSend a 301 to similar content where it exists; otherwise return 410 or keep the 404, because bulk homepage redirects can count as soft 404s.
  • MistakeAccepting high scores without a check.Do this insteadOpen the URLs with traffic and links one by one; the score only looks at URL words, not at page content.
  • MistakeForgetting that Redirect matches prefixes.Do this insteadUse exact RedirectMatch rules, or take the rules the tool writes as they are.
  • MistakeLeaving chains in place.Do this insteadFor rows with a warning, point the target straight to the final URL and update your older rules too.
  • MistakeRemoving the rules right after launch.Do this insteadKeep redirects for at least a year; external links and bookmarks keep sending people to old URLs for a long time.

Frequently Asked Questions

Planning a migration or redesign without losing rankings?

Talha Aslan and the team handle the URL inventory, the redirect plan and the post launch audit together.

Explore SEO Services

Related Tools

All Tools (75)
Broken Link CheckerFind broken links, redirects and broken images on any page, with status code, anchor text and target URL.
Redirect CheckerSee the 301/302 redirect chain and HTTP status codes step by step.
XML Sitemap GeneratorBuild a valid sitemap.xml with lastmod and priority from your URL list.
WHOIS Lookup & Domain AgeSee who a domain is registered with, when it was created and expires, its exact age and whether it looks available. Free, no sign-up.
Is It Down? Website CheckerIs a website down for everyone or just you? Check status code, response time, DNS and SSL in seconds, with clear next steps.
Website History CheckerSee old versions of any website, when it first appeared and what it was used for over the years, from Internet Archive records.