Redirect Rule Generator & Tester

Ready

Old → new URLs

One rule per line: old URL, then -> (or a tab, two-or-more spaces, or a comma), then the new URL. Add a status code at the end to override the default of 301 — e.g. /old -> /new 302.

Test a URL

Issues

Generated redirects


      

Parsed, generated and tested entirely in this browser — nothing is uploaded and no URL is fetched, so a trace shows what these rules would do, not what your live server currently does. A plain redirect rule matches the URL's path only: Apache and Nginx both ignore the query string unless told to match it, and by default append whatever the visitor's query string was onto your destination. Rules with a query string in the old URL get the extra condition they need; rules without one match that path regardless of query string, exactly as a real server would.

The Redirect Rule Generator needs JavaScript: the rules are parsed, checked and turned into server config entirely in this browser. With JavaScript switched off there is nothing to do the work.