A redirect sends visitors and search engines from one address to another. The status code tells them whether the move is permanent or temporary, and that affects which address Google shows in its results.
The redirect codes
| Code | Name | Meaning | Use it for |
|---|---|---|---|
| 301 | Moved Permanently | The page has a new home for good | Site moves, changed URLs, merged pages |
| 302 | Found | Temporarily elsewhere | Short promotions, A/B tests, maintenance |
| 307 | Temporary Redirect | Like 302, keeps the request method | Temporary moves for forms and APIs |
| 308 | Permanent Redirect | Like 301, keeps the request method | Permanent moves for forms and APIs |
For SEO, 301 and 308 are treated the same way, as are 302 and 307.
How Google treats each one
- Permanent redirects (301, 308) are a strong signal that the new address should replace the old one in search results. Ranking signals pass to the new page.
- Temporary redirects (302, 307) are a weak signal. Google usually keeps the old address in its index, because you've said you're coming back.
Google has said redirects don't lose PageRank, so a 301 isn't "leaking" value. And if a 302 stays in place for a long time, Google may eventually treat it as permanent. But it's better to send the right signal from the start.