Use a 301 when the move is permanent, and use a 302 when the move is temporary. That one choice tells browsers, search engines, and users what to do next.
TLDR: A 301 redirect says, “This page has moved for good.” A 302 redirect says, “This page is away for now, but it will be back.” For example, if your store moves from /old-shoes to /running-shoes forever, use 301. If you send 20% of users to a holiday sale page for 7 days, use 302 so Google does not treat the sale page as the new main page.
What Is Status Code 302?
A 302 status code is a temporary redirect.
It tells the browser:
- “Go to this other URL right now.”
- “Do not assume this change is permanent.”
- “The original URL still matters.”
That last part is the big deal.
With a 302, the original page usually keeps its place in search results. Search engines may still show the old URL. They treat the new URL as a short-term stop.
Think of it like a shop putting a sign on the door:
“We are across the street this week because the floor is being fixed.”
No one thinks the shop is gone forever. They just walk across the street.

What Is Status Code 301?
A 301 status code is a permanent redirect.
It tells browsers and search engines:
- “This page has moved forever.”
- “Update your records.”
- “Send ranking signals to the new URL.”
A 301 is the “new address” card you send after moving house.
If your page was:
example.com/blog/old-guide
And now it is:
example.com/blog/new-guide
Use a 301 if the old URL will not return.
Search engines then start replacing the old URL with the new one. Users also get sent to the right place. Nice. Clean. Less mess.
302 vs 301: The Simple Difference
| Redirect | Meaning | Best For | SEO Effect |
|---|---|---|---|
| 301 | Permanent move | New URLs, site moves, removed pages | Transfers most ranking signals |
| 302 | Temporary move | Sales, tests, maintenance, short campaigns | Usually keeps original URL indexed |
Here is the easiest rule:
If the old page is never coming back, use 301.
If the old page will come back, use 302.
That is it. That is the whole dog show.
When Should You Use a 302 Redirect?
Use a 302 redirect when the change is short-term.
Good 302 examples include:
- Limited sale pages: Send users to a Black Friday page for 4 days.
- A/B testing: Send half your visitors to a new landing page.
- Maintenance: Send users to a status page while a page is offline.
- Geo redirects: Send visitors to a regional page for a session.
- Login redirects: Send users to a dashboard after signing in.
Say your normal product page gets 10,000 visits a month. You want to test a new version for 14 days. You send 30% of users to the test page with a 302. That is 3,000 users. Search engines still understand that the original page is the main one.
That is exactly what you want.
Honestly, it feels like some sites use 302 redirects forever because nobody wants to touch the old settings. Then six months pass. Rankings get weird. Everyone blames the content team. Classic.
When Should You Use a 301 Redirect?
Use a 301 redirect when the move is final.
Good 301 examples include:
- You changed a page URL: From /cheap-laptops to /budget-laptops.
- You merged two pages: Send the weaker page to the stronger page.
- You moved to HTTPS: From http to https.
- You changed domains: From an old brand name to a new one.
- You removed a product: Send users to the closest useful replacement.
A 301 helps search engines pass value from the old URL to the new URL. It also prevents users from hitting dead pages.
Dead pages are bad for everyone. Users sigh. Search engines get grumpy. Your analytics fills with sad little error numbers.

What Happens If You Pick the Wrong One?
If you use a 302 when you need a 301, search engines may keep the old URL indexed.
That means your new page might not get full credit. Rankings can stall. Reports may look odd. You may see traffic split between two URLs.
If you use a 301 when you need a 302, search engines may treat the new page as the real page.
That can be annoying during short campaigns. Imagine redirecting your main “summer shoes” page to a “flash sale” page with a 301. The sale ends after 48 hours. But search engines may start treating the sale URL as the new home. Great. Now you have to clean it up.
It drives me crazy that one tiny setting in a CMS can do this. One dropdown. Two options. Ten hours of cleanup.
Do 302 Redirects Hurt SEO?
No, not when used correctly.
A 302 is not bad. It is just specific.
Use it for short-term changes. Search engines understand it. Browsers understand it. Users do not care as long as the page loads fast.
The trouble starts when a 302 stays in place for months or years. At that point, it no longer looks temporary. Search engines may adapt over time. But the signal is still messy.
If a redirect has been active for more than 3 to 6 months, ask one question:
Is the old page coming back?
If the answer is no, switch to a 301.
Do Browsers Cache 301 and 302 Redirects?
Yes, but not in the same way.
A 301 is often cached more aggressively. Browsers may remember it for a long time. That is useful for permanent moves. It can also be painful if you made a mistake.
A 302 is usually treated as less final. Browsers may still cache it, depending on headers. But the whole point is that it should be easier to change.
This is why testing matters.
Before you set a 301, check the target URL. Then check it again. Then maybe have someone else check it too. Permanent redirects are not tattoo-level permanent, but they can feel close when a browser refuses to forget them.
Fast Examples You Can Copy
Here are simple cases.
- Old blog post moved to a new URL forever: Use 301.
- Product page is out of stock for two weeks: Use 302 to a waitlist page.
- You changed your domain name: Use 301.
- You are running a Valentine’s Day promo: Use 302.
- You deleted a weak page and made a better one: Use 301.
- You are testing two homepage designs: Use 302.

How to Check Which Redirect You Have
You can test redirects with browser tools, SEO crawlers, or command line tools.
If you use the command line, try:
curl -I https://example.com/old-page
Look for the status code.
301 Moved Permanentlymeans permanent redirect.302 Foundmeans temporary redirect.
Also check the Location header. That shows where the URL sends users.
A clean redirect should go straight from old URL to new URL. Avoid redirect chains like this:
Page A → Page B → Page C → Page D
That slows things down. It can waste crawl budget. Users may notice the delay. Even 1 extra second can drop conversions, especially on mobile.
Best Practices for Clean Redirects
- Use 301 for permanent moves. No drama.
- Use 302 for temporary moves. Keep it short.
- Send users to the closest matching page. Do not dump them on the homepage.
- Update internal links. Do not rely on redirects forever.
- Avoid chains. One hop is best.
- Track traffic after changes. Watch clicks, rankings, and errors.
- Document your redirects. Future you will be grateful.
The Bottom Line
A 301 redirect is for a permanent move. A 302 redirect is for a temporary move. Pick based on intent, not convenience.
If the original URL is done, use 301. If it will return, use 302.
That tiny code tells search engines how to treat your pages. It also keeps users from landing in the wrong place. Simple choice. Big impact.
