In short
To generate redirects, enter one per line (the old path, a space, then the new path or URL), choose your server (Apache, Nginx or Netlify/Cloudflare) and 301 or 302, and copy the rules. Use 301 for permanent moves so search engines transfer rankings to the new URL.
How to use the 301 Redirect Generator
- 1Paste or type your input in the left box (or click "Try an example").
- 2Adjust the options if needed. The result updates as you type.
- 3Copy the result or download it as a file.
301 vs 302
A 301 says the move is permanent and passes ranking signals to the new URL. A 302 is temporary and keeps the old URL indexed. Avoid redirect chains: point every old URL directly at its final destination.
Frequently asked questions
Where do Apache rules go?
In the .htaccess file at your site's root (mod_alias must be enabled, which it is on most hosts).
Where do Nginx rules go?
Inside the server { } block of your site's configuration, then reload Nginx.
Is my data sent anywhere?
No. Everything runs in your browser. What you paste is never uploaded, logged or stored, so it's safe for code, tokens and private content.
Last updated

