Redirect Rule Generator

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

One pair per line, separated by a space, tab or comma. The old address may be a path or a full URL; the new one is used exactly as written.

301 is remembered by browsers, sometimes for a very long time. If there is any chance of changing your mind, 302 costs nothing to undo.

Redirect is easier to read and needs no escaping, but it cannot match a query string and it matches by prefix, so /old also catches /older.