301 Redirect Generator (.htaccess & Nginx)
Convert a list of old → new URLs into 301 redirect code for Apache, Nginx and WordPress.
About this tool
Migrating a site? Paste old and new URLs and get ready-to-use 301 rules for .htaccess, Nginx and a CSV for the WordPress Redirection plugin.
How to use the Redirect Rules Generator
- Paste one redirect per line.
- Copy the format you need.
- Add the rules to your server.
- Test with the Redirect Checker.
Frequently asked questions
Why 301?
It signals a permanent move and passes ranking signals to the new URL.
How many redirects can I add?
Hundreds are fine for .htaccess; use a plugin or server map for thousands.