Nginx Redirect Generator
Generate Nginx rewrite redirect rules from a list of old and new URLs.
Related tools
How it works
- 1
Add one or more redirects
An old path and its new destination.
- 2
Choose permanent or temporary
301 (permanent) or 302 (temporary).
- 3
Copy into your server block
Inside an Nginx site configuration file.
FAQ
- Does this work on Apache too?
- No - Nginx uses its own rewrite syntax. Use the .htaccess Redirect Generator on this site for Apache.
- Do I need to reload Nginx after adding this?
- Yes - Nginx configuration changes need a config test and reload to take effect.
- Does this tool send my input anywhere?
- No - the rules are generated entirely in your browser.