htaccess Redirect Generator
Turn a list of old and new URLs into Apache or nginx redirect rules.
How it works
- 1Paste one "/old /new" pair per line.
- 2Choose 301 or 302 and your server.
- 3Copy the rules into .htaccess or your nginx config.
Features
- Apache Redirect, Apache RewriteRule and nginx.
- Special characters escaped.
- Bad lines reported, not guessed.
- Private: runs in your browser; nothing is uploaded.
Frequently asked questions
301 or 302?
301 for permanent moves (search engines move the ranking); 302 for temporary ones.
Can I redirect a whole domain?
This tool maps paths. Domain moves need a host rule in your server config.
Related tools
Redirect CheckerFollow a link hop by hop and see every redirect and status code.Meta Tag GeneratorGenerate SEO, Open Graph and Twitter meta tags for your page.URL ShortenerTurn a long link into a short one, with an optional custom ending and a click counter.Base64 DecoderDecode Base64 (standard or URL-safe) back to text.