Developer tool
Nginx Redirect Generator
Turn old and new paths into safe nginx redirect rules in bulk.
Runs in your browserResult
Review generated rules against the surrounding nginx configuration and test for loops before reloading production.
How to use this nginx redirect generator
- Enter each old path and destination URL on its own line, then choose the correct permanent or temporary status code.
- Review the generated options. Check syntax, escaping, and edge cases against the source before using the result in a live project.
- Check the output against the source, then copy or download the finished result.
About this nginx redirect generator
The Nginx Redirect Generator lets you turn old and new paths into safe nginx redirect rules in bulk. The controls cover only the inputs needed for the result.
You can also use it to change the controls to produce a different result.
Example
Map /old-page to https://example.com/new-page and generate a 301 rule for a permanent move.
Common uses
- → turn old and new paths into safe nginx redirect rules in bulk
- → change the controls to produce a different result
- → copy a useful result into the project it belongs to