🔗 URL Tools

.htaccess 301 Redirect Generator

A migration with 400 redirects is an afternoon of error-prone typing. Paste the pairs and copy ready-to-use 301 rules in seconds.

  • 100% free, no limits
  • No sign-up
  • Your data never leaves your browser
  • Results in under a second

Free tool Paste your list — the redirect generator does the rest

The example below is already loaded, so you can see exactly what you get. Replace it with your own list and the result updates as you type.

↪️ Doing the whole job? Build a redirect map → every fix for it, ticked and in the right order

Got a bigger job? The full Notepad runs the same engine on lists of any size — chain this with dedupe, sort and filter, undo any step, and save the whole routine as a recipe for next time.

Example Redirect generator: before and after

Before
https://example.com/old-shoes/ | https://example.com/shoes/
/sale-2023/ | /sale/
After
Redirect 301 /old-shoes/ https://example.com/shoes/
Redirect 301 /sale-2023/ /sale/

How it works What the redirect generator does

Turns old → new URL pairs into 301 redirect rules for .htaccess or nginx, or a CSV. Use lines of “old | new”, or old URLs in the editor and new URLs (same order) in the second list.

Give it one redirect per line as “old | new” (a tab, → or => between the two also works), or put the old URLs in the editor and the new ones in the same order in the second box, and it writes the server rules for you. Choose Apache .htaccess (Redirect 301 lines), nginx (location = … { return 301 … } blocks for your server block) or a plain CSV for a plugin or a CDN rule import.

The old URL is reduced to its path, which is what Apache and nginx match on; the new URL is kept as you wrote it, so it can be relative or point to another domain. Lines from Match Old URLs to New URLs, which add a third score column, are accepted too. Old URLs with a query string get a comment instead of a rule, because Apache’s Redirect directive cannot match query strings.

3 steps How to use the redirect generator

  1. Paste your list into the box above — one item per line. Keyword exports, crawl exports and spreadsheet columns all work.
  2. Check the settings and adjust them to your job — the result updates as you type.
  3. Copy the result and paste it wherever it needs to go. Nothing is uploaded, so client and confidential data stay on your machine.

Use it to When to use the redirect generator

  • Turn a site-migration spreadsheet into .htaccess rules in seconds
  • Write nginx rewrites for a batch of deleted or merged blog posts
  • Produce a clean old,new CSV for a redirect plugin import

FAQ Redirect generator questions

Is Build Redirect Rules free to use?

Yes. Build Redirect Rules runs entirely in your browser, on this page and in the full Notepad, with no sign-up, no limits, and nothing sent to a server.

Are these 301 (permanent) redirects?

Yes. Every format produces permanent redirects, which pass link equity and tell search engines to index the new URL.

Where do I paste the .htaccess rules?

In the .htaccess file at your site root, above any WordPress or CMS rewrite block, so they run first. Test a few URLs afterwards to check they return 301 to the right place.

Pairs well with More URL Tools tools, all free

Stop fixing lists by hand

The redirect generator is one of the free tools inside Seowolf’s Notepad. Paste a list once, then dedupe, filter, sort, compare and format it in seconds — every step undoable, nothing uploaded, no account.

Open the Notepad — it’s free
← Browse all free tools
KnownHost