Free 301 Redirect Map Builder

Map every old URL before you migrate.

A migration without a redirect map throws away the links and rankings your old pages earned. Paste the old and new URLs, or both sitemaps, and get a matched redirect map with chains, loops and gaps flagged. Export it for Shopify, Next.js or Vercel. Free, and nothing leaves your browser.

One URL or path per line, or paste the old sitemap.xml. 7 found.
Same formats. Leave it empty and turn on Shopify patterns to get suggested Shopify paths. 4 found.
The share of path words two URLs must share to count as a match. Higher is stricter.
Shopify's default blog is News, so posts live at /blogs/news/post-handle.

7 old URLs, 6 redirects ready

  • Check: 1 duplicate sources. Only the first one is exported.
  • Pass: every old URL has a target, with no loops or chains.
Export format

The redirect map

Edit any target in the table. Exports and flags update as you type.

Redirect fromRedirect toMatchFlags
/shop/blue-linen-shirt.htmlSlug 0.60
/category/mens-shirtsShopify pattern
/blog/2024/05/how-to-wash-linenShopify pattern
/about-us.phpSlug 0.67
/contactSlug 0.50
/size-guideShopify pattern
/shop/blue-linen-shirt.htmlSlug 0.60Duplicate source

How the matching works

Every URL is cleaned up first: lowercase, no trailing slash, no query string or #fragment, and no .html, .htm or .php ending. Then each old URL tries four matches in order. The same cleaned path on the new site. The same last segment, the slug. Enough shared words in the path to pass your threshold. And, with Shopify patterns on, a suggested Shopify path.

Shopify keeps products under /products, collections under /collections, pages under /pages and posts under /blogs and the blog's handle. Every store starts with a blog called News, so posts default to /blogs/news. A suggested path only works if the page exists with that handle, so check them.

The three export formats

Redirect export formats and how to use each one
FormatShapeHow to use it
Shopify CSVTwo columns: Redirect from, Redirect toImport it in Shopify admin under Content, Menus, URL redirects, Import. Redirect from is a relative path that starts with /.
Next.js redirects(){ source, destination, permanent: true }Paste the array into redirects() in next.config. permanent: true sends a 308.
vercel.json"redirects": [{ source, destination, permanent: true }]For sites on Vercel that don't use Next.js. Vercel allows up to 2,048 redirects in the file.

Sources: Shopify's URL redirects guide and its Redirect API reference, the Next.js redirects docs and Vercel's configuration redirects docs.

Shopify rules to know before you import

  • Redirects only fire on broken URLs. If the old path still loads a live page on the store, Shopify won't redirect it.
  • Query strings are unreliable. Shopify warns that URLs with query strings might not redirect as expected, so the map drops them from the source.
  • There's a cap. A store can hold up to 100,000 URL redirects, or 20 million on Plus.
  • Relative targets stay on your domain. Use a full URL only when the target is on another domain.

Next.js and Vercel read the source as a pattern, so characters like ( ) : * + ? get a backslash in the export. For the full migration checklist, read our guide to Shopify replatform SEO, and check the new sitemap with the XML Sitemap Validator.

Is it safe to paste my URLs here?

Yes. Matching and exports run in your browser. The tool never fetches the URLs you paste, and nothing is uploaded or stored.

The math

How we calculated this

Each old URL matched to a new one, then the map checked for problems.

  1. Match

    Exact path, then slug, then the share of path words in common

  2. Fallback

    A Shopify path pattern when nothing matches, if turned on

  3. Flags

    Unmatched, duplicates, chains and loops

  4. Ready

    Rows with a target and no loop

What we assume

  • The threshold is the share of path words two URLs must share.

Rules of thumb

  • Point every redirect at the final URL, never at another redirect.

Free, and staying free

If one of these saved you an hour, an optional $5 tip helps cover what it costs to run and build them. Nothing unlocks, and every tool stays free.

Buy us a coffeeTip us for the free tools (optional tip, $5 suggested, opens Stripe in a new tab)

How to use the Redirect Map Builder

  1. Paste every old URL: a crawl export, your old sitemap.xml, or one path per line.

  2. Paste the new URLs the same way. Leave it empty for a move to Shopify and turn on Shopify patterns.

  3. Set the similarity threshold. Higher is stricter. 0.5 is a good start.

  4. Review every row, fix any flags, and point unmatched pages at the closest real page, not the home page.

  5. Export the Shopify CSV, the Next.js redirects array or vercel.json, then test a sample of old URLs after launch.

What the result means

  • Exact

    The same page after cleanup: case, trailing slash, query string and .html, .htm or .php endings ignored.

  • Slug

    The last part of the path matches, like /shop/blue-shirt to /products/blue-shirt. Check these quickly.

  • Similar

    The paths share enough words to pass the threshold. The score is the share of words in common. Check every one.

  • Shopify

    A suggested Shopify path built from the old URL's words and folder. The page has to exist with that handle for the redirect to land.

  • Flags

    Unmatched has no target. Duplicate lists the same source twice. Chain points at a URL that itself redirects. Loop ends back where it started. Identical points at itself.

Questions about this tool

What is a redirect map?

A list that pairs every old URL with the new URL it should send visitors and search engines to. It's the core document of any site migration.

What format does Shopify's redirect import use?

A CSV with two columns, Redirect from and Redirect to. Redirect from is a relative path that starts with a slash. Redirect to is a relative path on your store or a full URL elsewhere.

Why doesn't my Shopify redirect work?

Shopify only redirects from URLs that are broken. If the old path still loads a live page, the redirect won't run. Shopify also warns that URLs with query strings might not redirect as expected.

Should I redirect old pages to the home page?

Avoid it. Point each old page at the closest match. Mass redirects to the home page lose the context search engines used to rank the old page.

What's wrong with redirect chains?

Each extra hop slows the visitor and is one more place to break. Point every old URL straight at its final destination.

Is my URL list uploaded?

No. Matching and exports run in your browser. Nothing is fetched or sent.

Planning a migration that keeps your rankings?

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.