301 Redirect Generator
Generate 301 redirect rules for Apache, Nginx and Cloudflare Pages.
Rules
About this tool
Permanent redirects pass most link signals from old URLs to new ones and are essential in migrations. Paste your old and new URLs and get rules for three common setups.
How to use it
- Enter one redirect per line as “old path new path”.
- Choose the server type.
- Copy the rules to the matching config file.
301 Redirect Generator FAQ
301 or 302?
Use 301 (permanent) for moved content. Use 302 only for temporary moves.
How many redirects can I add on Cloudflare Pages?
A _redirects file supports up to 2,000 static and 100 dynamic redirects.