Nginx Redirect Generator

Generate Nginx rewrite redirect rules from a list of old and new URLs.

rewrite ^/old-page$ /new-page permanent;

Files never leave your device - everything is generated entirely in your browser.

Related tools

How it works

  1. 1

    Add one or more redirects

    An old path and its new destination.

  2. 2

    Choose permanent or temporary

    301 (permanent) or 302 (temporary).

  3. 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.

Tool4U.net — every tool runs in your browser. No file ever leaves your device unless the tool says so.

© 2026 Tool4U.net