SEO Strategy

301 vs 302 Redirects: Which One Should You Use for SEO?

Permanent or temporary? How Google treats 301, 302, 307 and 308 redirects, when to use each one, and how to keep your backlinks working after a move.

Link Puller TeamUpdated 3 min read

301 vs 302 Redirects: Which One Should You Use for SEO?
In this guide
  1. The redirect codes at a glance
  2. How Google treats permanent and temporary redirects
  3. When to use a 301
  4. When to use a 302
  5. Redirect chains and loops
  6. Redirects and your backlinks
  7. How to set up redirects
  8. Frequently asked questions

Short answerUse a 301 (or 308) when a page has moved for good, and a 302 (or 307) when the move is temporary. Google treats permanent redirects as a strong signal that the new URL should be shown in search, and temporary redirects as a weak signal, so the old URL may stay indexed. Check any URL with our free redirect checker.

The redirect codes at a glance

CodeTypeTypical use
301PermanentMoved pages, HTTPS and www changes, domain moves
308PermanentSame as 301, keeps the request method
302TemporaryShort promotions, A/B tests, maintenance
307TemporarySame as 302, keeps the request method
Meta refreshInstant: permanent, delayed: temporaryOnly when you cannot set server redirects

How Google treats permanent and temporary redirects

Google’s documentation explains that when Googlebot follows a permanent redirect, the indexing system uses it as a strong signal that the target should be canonical. A temporary redirect is a weak signal, so Google may keep showing the original URL. In both cases Googlebot follows the redirect. The difference is which URL Google prefers to show in search.

Google has also said that 3xx redirects do not lose PageRank. That does not mean the type is irrelevant: use the wrong one and Google may index the URL you did not want.

When to use a 301

  • You changed a page’s URL or merged two pages.
  • You moved from http to https, or from non-www to www.
  • You moved to a new domain.
  • You deleted a page and there is a close replacement.

When to use a 302

  • A product is out of stock for a few days and you send visitors to a category page.
  • You run a short seasonal landing page.
  • You are testing a new page design with a subset of visitors.

If a temporary redirect has been in place for months, it is probably permanent in practice. Switch it to a 301.

Free toolPaste any URL into the Redirect Checker to see every hop, its status code and response time, and get warnings for 302s, chains and loops.

Redirect chains and loops

A chain happens when URL A redirects to B, which redirects to C. It often builds up over years: http to https, then non-www to www, then an old slug to a new one. Each hop slows visitors and crawlers, and Googlebot only follows a limited number in a row. The fix is to send A straight to C.

A loop is a chain that comes back to itself. Browsers show an error, and the page cannot be crawled at all. Loops often appear after changing HTTPS or caching settings.

Backlinks point to specific URLs. If you change a URL without a redirect, every link to it lands on a 404. When you buy guest posts, link to pages you plan to keep, and add a 301 whenever one of them moves. After a migration, test the old URLs of your most linked pages with the redirect checker.

The same applies the other way: if a publisher moves the post that links to you, ask them to redirect it. Our backlink checker will show if the page now returns a redirect or an error.

How to set up redirects

  • WordPress: Rank Math, Yoast Premium and the Redirection plugin all create 301s from the dashboard.
  • Apache: Redirect 301 /old-page/ https://example.com/new-page/ in .htaccess.
  • Nginx: return 301 https://example.com/new-page/; inside a location block.

Frequently asked questions

Is a 301 better than a 302 for SEO?

For permanent moves, yes, because it tells Google to show the new URL. For temporary moves, a 302 is correct.

Do redirects pass link value?

Google has said 3xx redirects do not lose PageRank. Keep chains short so nothing breaks.

How long should I keep a 301 in place?

Ideally for good. Google recommends keeping redirects for at least a year after a site move, and links to the old URL keep working as long as it stays.

What is the difference between 302 and 307?

Both are temporary. A 307 guarantees the browser repeats the same request method, which matters for forms and APIs, not for normal pages.

Share this guideLinkedInXFacebook

Written by the Link Puller Team

We run a guest post marketplace with thousands of publisher sites. These guides come from what we see every day: which placements work, which ones get rejected and how to build links without wasting money. Questions? Email info@linkpuller.com.

Keep reading

Join the discussion

To keep the comments free of spam, only members with a verified email can comment. It takes less than a minute.

Create a free account

Already a member?

Forgot password?

Ready to build links the simple way?

Pick from 3,304 guest post sites with real DA, DR and traffic. No upfront payment: you pay after your link is live.