Search 4 min read Updated
Choosing between 301, 302, 307 and 308 redirects
In short
Use a permanent code when an old address should be retired, and a temporary one only when the original address is meant to return.
One old address, one new address, and a status code between them. The code decides two things: whether the request method may change, and whether the search engine should treat the new address as the main version. The four codes you will meet most often differ on exactly these two points. The guidance comes from Google’s guide Redirects and Google Search and the MDN page Redirections in HTTP.
Decide first whether the move is permanent
Decide first whether the old address should be retired for good. Google’s documentation groups 301 and 308 as permanent redirects, and 302 and 307 as temporary ones.
MDN describes permanent redirections as meant to last forever. The original URL should then no longer be used, and the new one replaces it.
The same split matters for search. Googlebot follows the redirect, and the indexing pipeline treats a permanent redirect as a signal that the target should be the canonical version. A temporary redirect is not used for that purpose, although Google also notes that it may help keep the old URL in its search results. Using a temporary code for a move that is really permanent therefore sends the wrong signal.
Only two codes keep the method and the body
The table uses the categories from MDN. Only 307 and 308 promise that the method and the body stay the same.
| Code | Category | Request method change | Typical use (MDN) |
|---|---|---|---|
| 301 Moved Permanently | Permanent | Possibly. A non-GET method may or may not be changed to GET | Reorganising a website |
| 302 Found | Temporary | Possibly. A non-GET method may or may not be changed to GET | A page is temporarily unavailable |
| 307 Temporary Redirect | Temporary | No. The method and body are not changed | A temporary move where non-GET operations exist |
| 308 Permanent Redirect | Permanent | No. The method and body are not changed | A permanent move of a site with non-GET links or operations |
Codes 307 and 308 remove the ambiguity about method changes, which is why MDN prefers 307 over 302 when the site offers non-GET operations.
A site with contact forms, sign-in steps or checkout requests should therefore use 307 or 308, because 301 and 302 leave the method change open. For a plain move of GET-only pages the rule is simpler: 301 for a permanent move, and 302 only when the page is temporarily unavailable.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Keep chains short
A redirect chain forms when one address redirects to a second, and the second to a third. Each extra hop adds a round trip for the visitor and one more step for crawlers. Google’s redirect guidance sets no hop limit, so there is no safe number of hops to aim for. Point every old address directly at its final destination.
Chains usually build up over several small changes. A product page moved once and then again can leave a three-step path behind, and nobody notices because every step still works. A periodic review of the redirect list catches chains before they grow. Check the final destination of each old address, not only whether the first hop responds.
A checklist for a page or site move
Use this order when an address changes. It applies whether you move one page or a whole site.
- Write a URL map with one old address and one new address on each row.
- Choose 301 or 308 for a permanent move, and 302 or 307 only when the old address is meant to come back.
- Use 307 or 308 wherever non-GET requests reach the old address.
- Redirect each old address straight to its final target, without chains.
- Crawl the old URLs after launch and check the status codes and the final destinations.
- Keep the redirects in place for as long as people and links still use the old addresses.
Google also notes that after a site move, some old URLs will probably keep appearing in results from time to time, so a redirect is not an instant fix. Keep watching search reports for errors after the move. For the planning side of a move, read moving a site without losing search traffic. For the structure of the new addresses, see URL structure that lasts, and for duplicate addresses that should not redirect at all, see Canonical URLs when one page has many addresses.
Common questions
- Does a temporary redirect tell Google that the new address is the main one?
- No. Google says the indexing pipeline does not use a temporary redirect as a signal that the target should be canonical. It may also help keep the old URL in search results.
- Which redirect codes keep the request method unchanged?
- According to MDN, 307 and 308 do not change the method or the body. With 301 and 302, a non-GET method may or may not be changed to GET.
- Is there a limit on how many redirects can follow each other?
- Google’s redirect guidance does not give a hop limit. The safe approach is to send each old address straight to its final destination.
Sources
- Redirects and Google Search, Google Search Central. Accessed 24 November 2026
- Redirections in HTTP, MDN Web Docs. Accessed 24 November 2026
Further reading
-
Moving a site without losing search traffic
Map every important old URL to its new equivalent, redirect it permanently, then update links and sitemaps and watch the results for weeks.
-
URL structure that lasts
A good URL uses readable words, hyphens and one letter case, and it changes as rarely as possible.
-
Canonical URLs when one page has many addresses
A canonical URL is the address you want search engines to treat as the main version, and you signal it with redirects, rel=canonical and your sitemap.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea