SEO.to / 18
Redirect generator
Paste the old URL and the new URL, pick your server, and copy the rule. Uses a 301 by default because permanent moves should say permanent.
redirect rule
Test the live result with the redirect checker.
Which status code
301 means the move is permanent and signals pass to the new URL. Use 302 or 307 only for moves you plan to reverse. A temporary code used permanently makes search engines guess.
The four syntaxes
| Server | Rule |
|---|---|
| Apache | Redirect 301 /old https://example.com/new |
| nginx | return 301 https://example.com/new; inside a location block |
| Netlify | /old https://example.com/new 301 in _redirects |
| Cloudflare | A bulk redirect list with source, target and 301 |