Permanent do-follow guest posts on 3,304 hand-checked sites, from $10info@linkpuller.comPackagesMy account
In this guide
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
| Code | Type | Typical use |
|---|---|---|
| 301 | Permanent | Moved pages, HTTPS and www changes, domain moves |
| 308 | Permanent | Same as 301, keeps the request method |
| 302 | Temporary | Short promotions, A/B tests, maintenance |
| 307 | Temporary | Same as 302, keeps the request method |
| Meta refresh | Instant: permanent, delayed: temporary | Only 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.
Redirects and your backlinks
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.





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