Redirects generator

Turn a list of old and new addresses into .htaccess redirect rules.

The data entered in the form are processed only in your browser and will not be saved or sent anywhere.

.htaccess redirect generator

Changing the address structure of a shop or a blog? Every old link left without a redirect ends in a 404 error - for visitors and for Google. This tool turns a list of "old address - new address" pairs into ready-made rules for the Apache server.

Besides plain 301 redirects, you can mark removed content (410 "Gone"), so search engines drop the address from their index sooner, and send a "noindex" header for pages whose code you cannot reach or would rather not touch.

Paste the addresses as CSV text (comma, semicolon, space or tab, with quotes, apostrophes or neither) or as two separate columns: old addresses in one, new ones in the other. The tool detects the separator and the enclosure itself, so data exported from a database or arranged in a spreadsheet goes in as it is.

Before the rules are written, the list is checked. The tool catches loops (the old and new address are identical), repeated redirects, conflicts (one address sent to two places), chains (a redirect to an address that is redirected again) and rules Apache never reaches because an earlier wildcard catches their address first. With a list put together by several people, that saves a lot of nerves.

Your latest 20 results stay in the history, in this browser only.

How to use it

For a 301 redirect, put the old and the new address on one line. For removed content, enter the address and the word "410"; to block indexing, the address and the word "noindex". A wildcard (*) in an address carries the matching part over to the new address (it becomes $1 in the rule).

Sample data

Paste it into the tool and see what comes out:

https://bwrite.pl/old-url,https://bwrite.pl/new-url
https://bwrite.pl/parametrized-url?param=value,https://bwrite.pl/simple-url
https://bwrite.pl/simple-url-param-value,https://bwrite.pl/parametrized-url?param=value
https://bwrite.pl/deleted-url,410
https://bwrite.pl/not-interesting-url,noindex
https://bwrite.pl/privacy-policy,noindex
https://bwrite.pl/old-category/*,https://bwrite.pl/new-category/*
https://bwrite.pl/old-category2/*,https://bwrite.pl/landing-page
https://bwrite.pl/latin-extended-chars-ążśćĄŚŻĆ,https://bwrite.pl/new-url
https://bwrite.pl/%C5%BC%C4%87%C3%B0,https://bwrite.pl/zcd
http://old-domain.com/*,https://new-domain.com/*

The rules are generated in your browser, and your latest results are kept only in this browser's local storage. Ads are served by Google, which uses cookies for them (see the privacy policy).
Operation of the generated settings is not guaranteed. Always check that adding them did not cause the server to malfunction!

Use it well.

bwrite( 2026 )