Whiteseo

301 vs 302 Redirects: Permanent and Temporary Explained

301 vs 302 Redirects: Permanent and Temporary Explained

The difference between 301 and 302 comes down to one word: permanence. A 301 says "this page has moved for good", a 302 says "it is temporarily somewhere else and will come back".

That distinction is not a technical detail — it decides which URL Google treats as canonical. Leaving a 302 on a permanent move is one of the most common misconfigurations there is, and the outcome is predictable: the old URL keeps appearing in results while the new one never reaches full strength.

Short answerPermanent redirects: 301 and 308. Temporary redirects: 302, 303 and 307. Google follows both kinds, but treats a permanent one as a strong signal that the target should be canonical and a temporary one as a weak signal. If the page has moved for good, always use 301 (or 308).

What a redirect is and when you need one

A redirect sends browsers and crawlers from the requested URL to a different one. An HTTP redirect specifically means a 3xx status code paired with a Location header.

The usual cases:

  • The page's address changed (a slug edit, a category change).
  • Two similar pages were merged.
  • The site moved from HTTP to HTTPS, or from www to non-www.
  • The domain changed.
  • A product was removed but a close alternative exists.

There is also a case where a redirect is not appropriate: if the page genuinely no longer exists and has no matching alternative, returning 404 or 410 is more correct than redirecting to the home page.

Permanent and temporary codes

Code Type Meaning For SEO
301 Permanent Moved Permanently The most used; a strong canonical signal
308 Permanent Permanent Redirect The same signal as 301; preserves the request method
302 Temporary Found Weak signal; the source URL can stay in results
303 Temporary See Other Usually after a form submission
307 Temporary Temporary Redirect The same signal as 302; preserves the method

In practice the choice is simple: 301 for permanent, 302 for temporary. 308 and 307 are technically more precise (they never change the request method), but the SEO outcome is identical.

301 — PERMANENTold URL/old-page301new URL — canonical/new-pageSTRONG SIGNALnew URL in results302 — TEMPORARYsource URL — may stay canonical/old-page302target URL/temporary-pageWEAK SIGNALold URL in results
Figure 1 — The same redirect, a different outcome: with 301 the target becomes canonical; with 302 the source URL can keep appearing in results.

The difference in signal strength

Google's status code documentation states the difference directly:

  • For 301 and 308, Google follows the redirect and uses it as a strong signal — the target URL should be selected as canonical.
  • For 302, 303 and 307, Google still follows it, but this is a weak signal.

Note that "weak" does not mean "no effect". In practice Google may end up treating a long-lived 302 like a 301 — but relying on that is a bad idea. Google's redirect documentation gives a clear recommendation: use a permanent server-side redirect wherever possible for permanent moves.

The practical consequence of a temporary redirect is that the source page stays in the search results. Sometimes that is exactly what you want (see below) — just not when the move is permanent.

Redirect methods, ranked by reliability

Google's documentation ranks the methods by reliability:

1. Server-side redirects — the most reliable. Via .htaccess, mod_rewrite, nginx configuration or backend code (PHP, Node).

# nginx — a permanent redirect for a single page
location = /old-page {
    return 301 https://example.com/new-page;
}
# Apache (.htaccess)
Redirect 301 /old-page https://example.com/new-page

2. Meta refresh — the second choice. An important subtlety: an instant (0 second) meta refresh acts as permanent, while a delayed one (greater than 0) acts as temporary.

<meta http-equiv="refresh" content="0; url=https://example.com/new-page">

3. JavaScript redirects — only when nothing else is available. Google's documentation warns that rendering may fail for various reasons.

4. "Crypto" redirects — the weakest. That is, plain explanatory text with a link ("This page has moved here"). Google advises not to rely on these unless you have no other choice.

The simple rule: use the first method whenever you can. Server-side redirects are the fastest and introduce no dependency on rendering, JavaScript or the browser.

Chains, loops and the 10-hop limit

A redirect chain is A → B → C. Every hop is an extra request: the page gets slower, especially on mobile connections.

Per Google's documentation, its crawlers follow up to 10 redirect hops by default. Longer chains are abandoned — meaning the destination page is never seen at all.

A redirect loop is A → B → A. This makes the page completely unreachable and produces a "too many redirects" error in the browser.

BAD — a chain/old301/middle301/old-2301/newGOOD — direct/olda single 301/new
Figure 2 — Chains do work, but every hop costs time. Clean up old redirect rules periodically and point them straight at the destination.

The quickest way to inspect a chain:

curl -IL https://example.com/old-page | grep -E "^HTTP|^[Ll]ocation"

In practice: changing a domain or URL structure

The sequence:

1. Build a map. A table of old URL → new URL. Every old page should go to the closest match in content, not all of them to the home page.

2. Set up 301s one by one. Bulk-redirecting everything to the home page is the single most repeated mistake — Google frequently classifies such redirects as soft 404s.

3. Update internal links. Links inside the site should point at the new URL directly, not through a redirect.

4. Update the sitemap. New URLs belong in the sitemap; old ones do not.

5. Monitor in Search Console. Check the Pages report to see how the redirects are processed and how the old URLs leave the index. For a domain change, use the Change of Address tool.

6. Keep the redirects for at least a year. External links and user bookmarks keep pointing at old addresses for a long time.

A word of cautionRedirect configuration is the riskiest part of [technical SEO](/en/services/texniki-seo) work: one wrong rule can make an entire section unreachable. After any change, always verify several real URLs with curl -IL.

When a 302 is the right choice

A 302 is not a wrong code — it simply has its place:

  • A temporary campaign page. A product page redirects to a seasonal page for the duration of the campaign and then returns.
  • An A/B test. Part of the traffic goes to a variant page for the duration of the test.
  • A product temporarily out of stock. If the product will come back, deleting or permanently redirecting the page is wrong.
  • Geo or language redirects. When sending a user to a regional version automatically, because the original URL must stay in place.

The test is simple: will the old URL show its own content again in future? If yes, use 302. If no, use 301.

Common mistakes

1. Leaving a 302 on a permanent move. The most frequent case; the canonical signal stays weak.

2. Redirecting every old URL to the home page. Irrelevant redirects get classified as soft 404s.

3. Building redirects in JavaScript. If rendering fails, the redirect is never seen.

4. Never cleaning up chains. Rules accumulated over years turn into four- and five-hop chains.

5. Leaving internal links on old URLs. Every click becomes an unnecessary extra request.

6. Not combining the HTTPS and www redirects. http://wwwhttps://wwwhttps:// is three hops where one would do.

Frequently asked questions

Does a 301 lose "link equity"?

Google uses a permanent redirect as a strong signal that the target should be canonical, which means signals consolidate onto it. In practice losses come not from the redirect itself but from a badly built map — an irrelevant target, or a long chain.

How long should a redirect stay in place?

A year minimum, permanently if you can. Links on external sites and user bookmarks can point at old addresses for years.

How soon do the effects of a 301 show?

Google processes it after recrawling the old URL, which can take anywhere from a few days to a few weeks depending on how often your site is crawled. Updating the sitemap speeds it up.

Should I use 308 or 301?

There is no SEO difference. 308 is more correct for APIs and form submissions because it preserves the request method; for ordinary page moves 301 is fine.

Is a redirect the same as a rel=canonical tag?

No. A redirect physically takes the user to a different URL and carries a strong signal. A canonical tag is a weaker hint that tells Google which page is primary while both remain accessible.

Continue this clusterPlanning a domain move or a change of URL structure? Start with a free consultation.
Official sources used
  1. Redirects and Google Search — permanent/temporary codes and redirect methods
  2. How HTTP status codes affect Google Search — strong and weak signals, the 10-hop limit
  3. Managing crawl budget — how redirects affect crawl budget
Whiteseo SEO Team
SEO specialists · 8+ years of experience · Reviewed and edited

The Whiteseo team has been doing search optimization for local and international brands since 2016. Our articles are based on real project experience.

WhatsApp Blog