Redirect Map Generator

Turn a two-column old → new URL list into copy-ready 301 redirect rules for nginx, Apache, Netlify, Vercel, or Cloudflare — all in your browser.

The Redirect Map Generator runs entirely in your browser. The old and new URLs you paste are parsed and formatted on your device and never leave it or reach ArrayKit.

Open the nginx Config Generator

About Redirect Map Generator

The Redirect Map Generator turns a plain old → new URL list into copy-ready 301 redirect rules for the platform you actually deploy on. Paste two columns separated by a comma, tab, arrow, or spaces, then pick a target: nginx return 301 blocks, Apache RedirectMatch rules, a Netlify _redirects file, a Vercel vercel.json array, or a Cloudflare Bulk Redirects CSV. Toggle path-only to strip scheme and host, and normalize trailing slashes on the match side so old and new paths line up. It is built for the messy part of a site migration, a CMS replatform, or a domain move — when a spreadsheet of hundreds of redirects has to become server config fast. Everything runs on your device; the URL map you paste never leaves the browser.

Features

How to use the Redirect Map Generator

  1. Paste your old → new URL pairs, one per line, into the input box
  2. Pick a target platform: nginx, Apache, Netlify, Vercel, or Cloudflare
  3. Set path-only and the trailing-slash rule to match your site
  4. Copy the generated rules or download the config file for deployment

Example

Input

/old-page, /new-page
/blog/2020/hello -> /articles/hello

Output

location = /old-page {
    return 301 /new-page;
}

location = /blog/2020/hello {
    return 301 /articles/hello;
}

A comma- and arrow-separated map compiled into nginx 301 blocks.

Common errors & troubleshooting

Frequently asked questions

What input format does the Redirect Map Generator accept?
Any two-column old → new list. Columns can be separated by a comma (CSV), a tab (TSV), an arrow like -> or →, or one or more spaces. Paste straight from a spreadsheet, a text file, or a chat message and the tool figures out the delimiter per line.
Which platforms can it generate 301 redirects for?
Five: nginx (return 301 location blocks), Apache .htaccess (RedirectMatch 301), Netlify (_redirects with 301!), Vercel (vercel.json redirects array), and Cloudflare (Bulk Redirects CSV). Switch targets and the same URL map recompiles instantly.
What is the difference between path-only and absolute rules?
Path-only strips the scheme and host, so 'https://site.com/old' becomes '/old' — ideal when the server already scopes to one domain. Absolute keeps the full URL, which you want for cross-domain moves or Cloudflare rules that reference the origin host.
How does the trailing-slash toggle work?
It normalizes the trailing slash on the match (old) side only, so /old and /old/ both resolve the way you intend. Add appends a slash, Remove strips it, and Keep leaves paths exactly as pasted. A bare '/' is never changed.
Why are 301 redirects used instead of 302?
A 301 is a permanent redirect, so browsers and search engines pass link equity to the new URL and cache the move. That is what you want for a migration or domain change; the generator emits 301 for every rule.
Is my list of URLs uploaded anywhere?
No. The Redirect Map Generator parses and formats everything in your browser with plain JavaScript. The old and new URLs you paste stay on your device and are never sent to ArrayKit or any server.

Related tools

All ArrayKit tools