301 vs 302 redirect: which one to use
Use a 301 when the old address is gone for good and a 302 when the move is temporary. The status code is how you tell browsers and search engines which address is the real one. A wrong choice is easy to make because both look identical in a browser: the visitor lands on the new page either way.
The codes side by side
| Code | Name | What it tells browsers and crawlers |
|---|---|---|
| 301 | Moved Permanently | The address has changed for good. Search engines index the destination. |
| 302 | Found | A temporary detour. The original address stays the reference. |
| 307 | Temporary Redirect | Like 302, but the request method must not change. |
| 308 | Permanent Redirect | Like 301, but the request method must not change. |
The method rule matters for forms. With 301 and 302, some clients turn a POST into a GET when they follow the redirect. 307 and 308 forbid that. For ordinary page moves you will not notice the difference.
When a 301 fits
- You moved a page or a whole site to new addresses.
- You switched from
http://tohttps://. - You picked one version of the domain, with or without
www, and want the other to point to it. - Two pages were merged and the old one should lead to the new one.
When a 302 fits
- A page is down for maintenance and a notice page stands in for a few hours.
- You are testing a variant of a page and the original address stays the one you want indexed.
- A short promotion points a stable address to a seasonal page, and it will point back.
The mistake that costs the most
A temporary code on a permanent move. After a migration, a server that sends 302 for every old address keeps telling search engines that the old addresses are the reference. Search engines may eventually treat a 302 that lasts for months as permanent, but that is their guess, not your instruction. Say it with a 301.
The second most common problem is a chain: http:// to https:// to www to a trailing slash is three round trips before the page starts to load. One redirect from the old address to the final one does the same job in one.
Check what your server sends
Do not read the code from a browser, which hides it. The Redirect Checker follows an address hop by hop and prints the status code, the target and the response time of each one, for up to 10 URLs at once. It flags chains, loops and temporary codes. It reads HTTP responses only: a redirect made by JavaScript or a meta refresh tag happens in the browser after load and does not appear.
Next step
- Open the Redirect Checker: Follow a URL hop by hop and see each status code, target and response time. Up to 10 URLs at once.
- See what the dashboard does, from the site audit to IndexNow and forms, or compare the Free and Pro plans. Every tool is in both.
- Create a free account. No card is asked.