A redirect sends users and search engines from one URL to another. The status code tells search engines whether the move is permanent or temporary.
Status codes
| Code | Type | Use when |
|---|---|---|
| 301 | Permanent | A page has moved for good |
| 308 | Permanent, keeps method | As 301, keeps POST requests |
| 302 | Temporary | Short-term changes, A/B tests |
| 307 | Temporary, keeps method | As 302, keeps POST requests |
For SEO, 301 and 308 consolidate signals to the new URL.
Best practice
- Redirect to the most relevant equivalent, not the home page.
- Avoid chains and loops: point old URLs straight to the final URL.
- Update internal links instead of relying on redirects.
- Keep redirects for at least a year, ideally permanently.
- Map every old URL before a migration.
Tools
Redirection plugin in WordPress, server rules, or your CDN. Find chains with Screaming Frog.
Frequently asked questions
What is a 301 redirect?
A permanent redirect that sends users and search engines to a new URL.
How long should I keep redirects?
At least a year, ideally permanently.
Read also
Sources
- Google Search Central, Redirects and Google Search: developers.google.com/search/docs/crawling-indexing/301-redirects
