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

Short answer
Use a 301 redirect when a page has moved permanently and you will not move it back: Google treats the new address as the canonical one and shows it in search. Use a 302 only for a temporary move, because Google keeps the old address indexed. 308 works like 301 and 307 works like 302, except that both keep the request method unchanged. Keep permanent redirects in place for at least a year.
Use a 301 redirect when a page has moved for good and you will not move it back. Use a 302 redirect only when the move is temporary and the old address will return. That one choice decides which address Google keeps in its index: a permanent redirect tells Google the new URL should be canonical, while a temporary redirect tells it to keep showing the old one.
The rest of this guide explains how Google reads each status code, where 307 and 308 fit, how to set each one up, and the redirect mistakes we see most often in site audits.
What is the difference between a 301 and a 302 redirect?
Both send visitors and crawlers from one URL to another. The difference is the promise each one makes.
- 301 Moved Permanently says the old URL is gone and the new one replaces it. Google's documentation says the indexing pipeline uses a permanent redirect "as a signal that the redirect target should be canonical", and search results show the target.
- 302 Found says the content is somewhere else for now. Temporary redirects do not send the canonical signal, so search results keep showing the source URL.
Google describes 301 as a "strong" signal and 302 as a "weak" one. In practice that means a 302 left in place for a permanent move slows down, or prevents, the new URL from taking over the old one's place in search.
301 vs 302 vs 307 vs 308: the full picture
HTTP has four common redirect codes, plus a few non-HTTP ways to redirect. Google sorts them into permanent and temporary:
| Redirect | Type | How Google treats it | Request method |
|---|---|---|---|
| 301 Moved Permanently | Permanent | Strong signal, target becomes canonical | May change POST to GET |
| 308 Permanent Redirect | Permanent | Same as 301 | Kept unchanged |
| 302 Found | Temporary | Weak signal, source stays indexed | May change POST to GET |
| 307 Temporary Redirect | Temporary | Same as 302 | Kept unchanged |
| 303 See Other | Temporary | Same as 302 | Always GET |
| Meta refresh, 0 seconds | Permanent | Treated like a permanent redirect | Not applicable |
| Meta refresh, delayed | Temporary | Treated like a temporary redirect | Not applicable |
| JavaScript location change | Permanent | Works only if rendering succeeds | Not applicable |
For SEO, 301 and 308 are interchangeable, and so are 302 and 307. The only difference inside each pair is whether a form submission (a POST request) stays a POST after the redirect. Frameworks such as Next.js use 308 and 307 by default for exactly that reason.
When should you use a 301 redirect?
Use a permanent redirect whenever the old URL is not coming back:
- You changed a page's URL or slug.
- You merged two pages into one.
- You moved from HTTP to HTTPS, or from www to the bare domain (or the reverse).
- You moved the whole site to a new domain.
- You deleted a page that has a close replacement.
Google's own advice is short: use "a permanent server-side redirect whenever possible", and use permanent redirects "when you're sure that the redirect won't be reverted".
A lesson from our own site. Until November 26, 2026, the redirect from www.seovision.io to seovision.io was a 307, the temporary code our hosting platform set by default for the domain. Nothing broke, but it was the wrong promise for a move we will never undo. We switched it to a 308. If your host manages domain redirects for you, check which code it sends. The free redirect checker guide shows how to see every hop and its status code.
When should you use a 302 redirect?
A temporary redirect is right when you expect the original URL to come back:
- A/B testing a new version of a page while the old URL stays the main one.
- Sending visitors to a temporary promotion or event page for a few days.
- Pointing a product that is briefly out of stock to its category until it is back.
- Short-term moves during a rebuild, when the old page returns at the same address.
If you are unsure whether a move is temporary, it usually is not. Most redirects that start as "temporary" are still in place a year later, and by then the 302 has been holding back the new URL the whole time.
For planned downtime, a redirect is the wrong tool altogether. Serve the page with a 503 status so Google retries later instead of indexing a maintenance page.
Does a 302 pass link equity?
Google's site move guide says that "301 and other permanent redirects don't cause a loss in PageRank". It makes no such statement about temporary redirects. And even setting link credit aside, the bigger problem with a 302 is canonicalization: with a temporary redirect, Google keeps the old URL as the one it indexes and ranks, so the new URL never fully takes over. For a permanent move you want the signals and the indexed URL on the new address, and only a 301 or 308 asks for that.
How to set up a 301 or 302 redirect
Server-side redirects are the most reliable. A few common setups:
Apache (.htaccess). Add one line per rule: the word Redirect, the status code, the old path and the new path. For example, the line Redirect 301 /old-page /new-page moves a page for good, and Redirect 302 /summer-sale /promotions sends visitors to a temporary page.
Nginx. Inside an exact-match location block for the old path, add a return 301 line followed by the full new URL. Use return 302 instead for a temporary move.
Next.js (next.config). Add an async redirects function that returns a list of rules. Each rule has a source path, a destination path and a permanent flag. In Next.js, permanent set to true sends a 308 and permanent set to false sends a 307. For Google, those behave like 301 and 302.
WordPress. Most SEO plugins and redirect plugins let you pick 301, 302 or 307 per rule. Pick 301 unless the move is truly temporary.
Avoid JavaScript redirects unless a server-side redirect or meta refresh is impossible. Google warns that "rendering may fail", in which case the redirect is never seen.
Common redirect mistakes that cost rankings
- Using a 302 for a permanent move. The most common one. HTTPS migrations, domain moves and URL changes should all be 301 or 308.
- Redirect chains. Page A redirects to B, which redirects to C. Google follows up to 10 hops, but every hop slows visitors down and wastes crawling. Point A straight at C.
- Redirecting everything to the homepage. When a deleted page has no close replacement, sending it to the homepage does not keep its rankings. Google may treat it as a soft 404. Redirect to the closest relevant page, or let the page return a 404.
- Removing redirects too soon. Google's site move guide says to keep redirects "for as long as possible, generally at least 1 year". Old links and bookmarks keep sending people to the old URLs long after that.
- Leaving internal links on old URLs. Redirects are a safety net, not a substitute. Update your own menus, internal links, canonical tags and sitemap to the new URLs so crawlers reach them directly.
- Redirect loops. A redirects to B and B redirects back to A. Visitors see an error and Google drops both. This often happens when a plugin rule and a server rule disagree.
How to check which redirect a URL returns
You can see the status code of every hop in a few ways:
- Run the URL through a redirect checker. Our guide to checking redirects walks through the free options and what each result means.
- In a terminal, run curl -I followed by the URL. It prints the status code and the Location header of the first response.
- In Google Search Console, the Page indexing report lists redirecting URLs under "Page with redirect". That status is normal for an old URL and only needs attention if the target is not indexed. Our Google index checker shows whether the target page is in the index.
If your site has hundreds of old URLs, chains and mixed 301s and 302s, this is exactly the kind of cleanup our technical SEO service does for you: broken URLs with traffic go to the closest live page, and chains are cut to a single hop.
What to do next
- List every redirect on your site and the status code it returns.
- Change permanent moves that use 302 or 307 to 301 or 308.
- Collapse chains so every old URL reaches its final page in one hop.
- Update internal links, canonicals and your sitemap to the final URLs.
- Keep the redirects live for at least a year after any move.
FAQ
What is the difference between a 301 and a 302 redirect?
A 301 redirect says a page has moved permanently, so Google treats the new URL as canonical and shows it in search results. A 302 redirect says the move is temporary, so Google keeps the old URL indexed. Google calls a 301 a strong signal and a 302 a weak one.
Is a 301 or 302 better for SEO?
For a permanent move, a 301 is better because it asks Google to replace the old URL with the new one in its index. A 302 is only better when the move really is temporary and you want the original URL to stay in search results.
What is the difference between 307 and 308 redirects?
A 307 is a temporary redirect and a 308 is a permanent one. Google treats a 307 like a 302 and a 308 like a 301. The difference from 302 and 301 is that 307 and 308 keep the request method unchanged, so a form submission stays a POST request after the redirect.
Does a 302 redirect pass link equity?
Google's site move guide says that 301 and other permanent redirects do not cause a loss in PageRank, but it makes no such statement about temporary redirects. The bigger issue with a 302 is canonicalization: Google keeps the old URL as the indexed one, so the new URL does not fully take over its rankings. For a permanent move, use a 301 or 308.
How long should you keep a 301 redirect?
Google's site move guidance says to keep redirects for as long as possible, and generally at least one year. Old backlinks and bookmarks keep sending visitors to the old URLs long after a move, so many sites keep important redirects indefinitely.
Can a 302 redirect hurt SEO?
A 302 used for a permanent move can hold back the new URL, because Google keeps indexing the old one. Used for a truly temporary move, a 302 does no harm. The damage comes from leaving temporary redirects in place for permanent changes such as HTTPS or domain migrations.
Sources
Reference: SEO & AI-search glossary · AI visibility tools compared · tool alternatives
Make SeoVision a preferred source
One tap and Google shows our articles more often in your Top Stories, Discover and AI answers. It only changes what you see, and you can undo it any time.
See if AI is citing your brand
Track how ChatGPT, Claude, Gemini and Perplexity talk about you — and get cited more.
Get started for free