What is the difference between 301 and 302 redirects, and when should you use each?

ProcrustesPR

A 301 indicates a permanent move; a 302 indicates a temporary move. Start by asking whether you intend to restore the original URL. If the new URL will permanently replace it, choose 301. If you are redirecting to another page temporarily and will use the original URL again, choose 302. Both take visitors to the destination page. The main differences concern how search engines interpret the URL change and how browsers may cache the redirect. For requests such as form submissions, you also need to check whether the request method must be preserved.

ProcrustesPRProcrustesPRHow Long Does It Take to Evaluate SEO Results?

Search handling: the difference lies in canonical URL signals

According to Google’s documentation, Googlebot follows both permanent and temporary redirects, but handles indexing differently. A 301 signals that the destination URL should become the canonical URL. A 302 does not itself provide that signal, helping keep the original URL in search results.

This does not mean that the destination of a 302 redirect can never be indexed. Google also explains that the destination page may still be indexed if other signals support choosing its URL as canonical. A temporary redirect therefore does not mean the original URL’s rankings will remain unchanged forever, nor should a 301 be treated as a ranking guarantee.

Choose based on your goal: permanent replacement or eventual restoration?

  • Moving a site or changing paths permanently: If the old URLs will no longer be used, redirect each one to its corresponding new page with a 301, rather than sending all site traffic to a single page.
  • Consolidating duplicate pages: Choose the canonical URL to retain, then permanently redirect the retired URLs to it.
  • Temporary service unavailability: A 302 can redirect visitors to a status page until the original URL is restored.
  • Limited-time promotions or split testing: Semrush’s 2023 article lists these as use cases for a 302—for example, sending visitors to a promotional version of a page during a campaign or directing some visitors to a test version.

The key consideration is not simply how many days the redirect will last, but whether you intend to restore the original URL. If the goal is to have search results display the new URL, Google recommends using a permanent server-side redirect whenever possible.

Caching differences: removing a redirect may not take effect immediately

Semrush’s 2023 explanation notes that browsers may cache a 301. When visitors open the old URL again, the browser may go directly to the destination without checking with the server, so removing the redirect may not take effect immediately. For a 302, the article says browsers are more likely to check with the server again and redirect only if the redirect is still in place.

These are possible behaviors, not a guarantee that a 301 is always cached or a 302 is never cached. If a page needs to return to its original URL soon, do not mistakenly choose a permanent redirect simply because you want search results to show the new URL.

For forms, consider the request method too

A 302 may change a POST request to GET. According to Semrush’s 2023 explanation, a 302 can be used for a temporary redirect to a promotional page if a change in the request method does not matter. If a temporary move must preserve the original request method, consider a 307 instead. Choosing a redirect therefore involves more than deciding whether the move is permanent or temporary. You also need to check whether it handles ordinary browsing requests or requests that must retain their original submission method.

ProcrustesPRProcrustesPRWhere should I start if I want to do SEO myself?

301 and 302 redirects: perspectives from across the web

Can you leave a 302 redirect in place indefinitely?

A 302 is suitable for temporary arrangements where you intend to restore the original URL. Check regularly whether the redirect is still needed. If you have decided to replace the original URL permanently, switch to a permanent redirect. In 2023, Semrush noted that search engines may eventually treat a long-standing 302 as a permanent redirect and recommended keeping it in place for no more than six months. This is the article's recommendation; the cited material does not establish six months as an official time limit.

Is there a definitive answer on how 301 and 302 redirects affect ranking signals?

There is no blanket answer, and the sources differ. A 2020 awoo article says that a 302 does not transfer page ranking signals, while a 2023 Semrush article says that a long-standing 302 may eventually be treated as a 301. Google's documentation focuses on canonical URL signals and does not guarantee ranking outcomes. You therefore should not assume that a 302 never passes ranking signals or that a 301 is guaranteed to preserve rankings.

Should you use a 301 for a permanently deleted page with no suitable replacement?

A redirect is not necessarily needed. Semrush generally recommends using a 404 when a page has been permanently deleted and has no suitable replacement. A 301 is appropriate for a permanent move with a direct replacement page. If there is a corresponding new page, redirect the old URL to it rather than using an unrelated page as a substitute.

What are the alternatives if your platform does not support server-side redirects?

Consider a meta refresh or an equivalent HTTP header. Google interprets an instant refresh as a permanent redirect and a delayed refresh as a temporary redirect. JavaScript redirects are recommended only when neither server-side redirects nor meta refresh can be used, because a rendering failure may prevent Google from seeing the redirect.

ProcrustesPRShould I rewrite or update an old article that does not rank?

References

  1. 重新導向與 Google 搜尋 | Google 搜尋中心  |  Documentation  |  Google for Developersdevelopers.google.com — Discusses: Is there a definitive answer on how 301 and 302 redirects affect ranking signals?; What are the alternatives if your platform does not support server-side redirects?
  2. What Is a 307 Redirect? An Overview & How to Use Itwww.semrush.com · 2023-12-07T16:41:00Z — Source used in the article above.
  3. 301/302轉址如何影響網站SEO?三大要點讓你做好網站SEOwww.awoo.ai · 2020-01-07T09:09:52+00:00 — Discusses: Is there a definitive answer on how 301 and 302 redirects affect ranking signals?
  4. 301 vs. 302 Redirect: Which to Choose for SEO and UXwww.semrush.com · 2023-12-11T15:04:00Z — Discusses: Can you leave a 302 redirect in place indefinitely?; Is there a definitive answer on how 301 and 302 redirects affect ranking signals?
  5. Redirects: What They Are & How to Use Themwww.semrush.com · 2020-07-20T11:00:00Z — Discusses: Can you leave a 302 redirect in place indefinitely?

Related articles

How Long Does It Take to Evaluate SEO Results?Where should I start if I want to do SEO myself?Should I rewrite or update an old article that does not rank?What should I check when organic traffic suddenly drops?Why can I not find my published article on Google?Will Reposting Social Content on My Website Cause a Duplicate-Content Penalty?Eight SEO essentials for beginners: Getting your pages indexedWhat Is SEO? Understanding Optimization Priorities Through How Search Engines Work
ProcrustesPR
ProcrustesPR