301 vs 302 Redirect: Which One to Use and When
One wrong digit can make Google forget your best page existed. That is the power of redirects: a 301 and a 302 move visitors from one URL to another, yet they send search engines opposite messages. Pick the right one and your rankings travel with the page. Pick the wrong one, and you could split signals, confuse crawlers, or leave an old URL stuck in results. Stick with this guide to the end, because the testing section and FAQs will save you from mistakes most site owners discover too late.
Decoding the 301 vs 302 Redirect: What Each Code Really Says
Before choosing, it helps to know what these three-digit codes communicate behind the scenes.
Status codes are instructions, not decoration
Every time a browser or crawler requests a URL, the server replies with a status code. Codes in the 300 range mean “this content lives somewhere else.” The specific number then tells the visitor how long that arrangement will last, and search engines take that detail very seriously.
A 301 says “we’ve moved for good”
A 301 Moved Permanently response tells browsers and bots that the old address is retired. Google follows the redirect and treats the destination as the canonical version, so the new URL is the one that shows up in search results. Browsers may cache it, skipping the old URL next time.
A 302 says “back soon”
A 302 Found response signals a short detour. Google still follows it, but it keeps the original URL as the canonical page and usually leaves it in results. Think of it as a note on a shop window saying the counter has moved next door for the afternoon.
The 301 vs 302 Redirect Face-Off: A Side-by-Side Table
Here is how the two codes stack up on the factors that matter for SEO and user experience.
| Factor | 301 redirect | 302 redirect |
|---|---|---|
| What it means | Permanent move | Temporary move |
| Google’s canonical choice | The new URL | The original URL |
| URL shown in search results | The destination | Usually the source |
| Ranking signals | Consolidate on the new URL | Stay with the original URL |
| Browser caching | Often cached for a long time | Not cached by default |
| Typical lifespan | A year or longer | Days to a few weeks |
| Best for | Migrations, HTTPS, merged pages | Tests, maintenance, promotions |
| Method-preserving sibling | 308 | 307 |
Meet the cousins: 307 and 308
Google groups 308 with 301 as permanent, and 302, 303 and 307 as temporary. The difference is technical: 307 and 308 guarantee the request method stays the same, so a form submission stays a POST. For ordinary page moves, 301 and 302 remain the common choice.
Moving Day: When a 301 Wins the 301 vs 302 Redirect Debate
Reach for a 301 whenever you are confident the old URL will never come back.
1. Switching domains or rebranding
Moving from oldbrand.com to newbrand.com is the textbook case. Map every old URL to its closest new equivalent with a one-to-one 301, page by page. Sending everything to the new homepage throws away the relevance each individual page built up over months or years.
2. Going from HTTP to HTTPS
Once your SSL certificate is live, every HTTP request should land on the secure version through a 301. This is permanent by nature, since you never plan to go back to an insecure site. Pair it with HTTPS URLs in your sitemap and canonical tags.
3. Merging duplicate or overlapping posts
Two articles chasing the same query compete with each other. Keep the stronger one, fold the best parts of the weaker post into it, then 301 the leftover URL. A near-identical pair of slugs like /how-to-do-saas-seo-audit/ and /how-to-do-a-saas-seo-audit/ is a classic example, and only one should survive.
4. Cleaning up a messy URL slug
Maybe an old slug includes a year, a typo or a clumsy keyword string. If you rewrite /best-tools-2019-list/ as /best-seo-tools/, a 301 keeps backlinks and bookmarks working. Update internal links to the new address too, so crawlers stop taking the extra hop.
5. Retiring a page that has a true replacement
When a product is discontinued, and a newer model takes its place, a 301 sends shoppers and link value to the successor. The key word is “true.” If nothing similar exists, a 404 or 410 is more honest than forcing an unrelated redirect.
Short Detours: When a 302 Takes the 301 vs 302 Redirect Crown
A 302 fits any situation where you fully expect the original URL to return.
1. Running an A/B test on a landing page
Testing a new layout against the original? A 302 sends part of your traffic to the variant while Google keeps the original as the main version. When the test ends, remove the redirect, or switch to a 301 if the variant wins for good.
2. Taking a page offline for maintenance
Rebuilding a checkout or fixing a broken template can take a few days. Pointing visitors to a holding page with a 302 keeps them informed without telling Google the original is gone. For very short outages, a 503 status with a Retry-After header is even cleaner.
3. Promoting a seasonal campaign
During a holiday sale, you might send /deals/ to /black-friday/ for two weeks. Because /deals/ will be back in January, a 302 protects its long-term rankings. Set a calendar reminder to remove the redirect, since forgotten temporary redirects are surprisingly common.
4. Covering a product that is briefly out of stock
If an item will be restocked next week, a 302 can steer shoppers to a similar product in the meantime. The original page keeps its place in search, ready for the moment stock returns. Many stores simply keep the page live with a back-in-stock notice instead.
5. Sending logged-out users to a sign-in page
Account dashboards often bounce visitors who are not signed in to a login screen. That is a temporary state, because the dashboard URL is still valid once someone logs in. A 302 is the natural fit here, and search engines will not mistake the login page for the destination.
Inside Google’s Head: How It Reads a 301 vs 302 Redirect
Google publishesclear guidance on redirects, and a few details surprise even experienced SEOs.
Canonical signals follow the code
With a permanent redirect, Google’s indexing pipeline treats the target as canonical. With a temporary one, the source stays canonical, and the target is indexed only if other signals point to it. That single difference is why the 301 vs 302 redirect choice matters at all.
Old URLs linger as alternate names
After a domain move, you may still see old URLs in search for a while. Google keeps them as alternate names for the new canonical page, and they fade naturally over time. This is normal behavior, not a sign that your 301s failed.
Server-side beats everything else
Google says server-side redirects are the most reliably interpreted. An instant meta refresh counts as permanent and a delayed one as temporary. JavaScript redirects work only if rendering succeeds, so treat them as a fallback. Visible “this page has moved” links are a last resort.
Link value is not “lost” in a redirect
An old myth claims 301s leak a slice of PageRank. Google’s Gary Illyes said in 2016 that 3xx redirects no longer lose PageRank. The real risk is not the code itself but a wrong pairing, such as redirecting a detailed guide to an unrelated page.
A 302 left too long may be reread
Google has said that a temporary redirect kept in place for a long time may eventually be treated like a permanent one. Do not rely on that. If a move is permanent, say so clearly with a 301 instead of waiting for Google to guess.
Put Your 301 vs 302 Redirect to the Test with Free Tools
You do not need paid software to confirm a redirect behaves the way you intended. These free options cover every skill level:
- Chrome DevTools: Open the Network tab, tick “Preserve log,” and load the old URL. The first row shows the status code and the Location header pointing to the destination.
- curl in your terminal: Run curl -I https://example.com/old-page to see the raw response headers, or add -L to follow every hop in a chain.
- httpstatus.io: Paste a batch of URLs and get each status code, the full redirect path, and response times in one table.
- Redirect Path (Chrome extension): The toolbar icon lights up whenever a page redirects, listing every hop and code without opening any menus.
- Google Search Console URL Inspection: Check the old URL to see which page Google picked as canonical. This shows how Google actually reads your redirect, not just what the server sends.
- Screaming Frog SEO Spider (free version): Crawl up to 500 URLs and filter the Response Codes tab by 3xx to find chains, loops, and stray 302s.
- VRN Exora: Run a free website audit to flag redirect chains, broken links, and status code issues across your whole site in one report.
Step 1: Test the source URL directly
Start with the exact old address, including variations like http, https, www, and non-www. Each version should reach the final page in one hop with the code you intended. Four quick checks here catch most of the setup mistakes people make on migrations.
Step 2: Confirm the destination returns 200
A redirect that lands on a 404, another redirect, or a soft error page is broken, even if the first code looks right. Make sure the final URL loads with a 200 OK status, carries a self-referencing canonical tag, and is listed in your sitemap.
Step 3: Recheck after a few weeks
Redirects break quietly when plugins update, servers migrate, or someone edits .htaccess. Recrawl your key redirected URLs a few weeks after launch, then every quarter. In Search Console, watch the Page indexing report for “Page with redirect” entries growing in ways you did not plan.
301 vs 302 Redirect Blunders That Quietly Cost Rankings
Most redirect problems come from setup habits, not from choosing the wrong code once.
Building redirect chains
Page A points to B, B points to C, and C finally loads. Each hop slows users down, and Googlebot follows only up to 10 hops before giving up. Whenever you add a new redirect, point older ones straight at the final URL.
Creating redirect loops
A loop happens when two URLs redirect to each other, often after conflicting rules in a plugin and a server config. Browsers show a “too many redirects” error and crawlers abandon the page entirely. Keep all redirect rules in one place so conflicts are easy to spot.
Using a 302 for a permanent move
Apache’s plain Redirect directive and PHP’s Location header both default to 302 unless told otherwise. If you migrate pages that way, Google keeps the old URLs as canonical, and your new ones struggle to take over. Always check which code your setup actually sends.
Dumping everything on the homepage
Redirecting hundreds of retired pages to the homepage looks tidy but helps nobody. Google often treats these irrelevant redirects as soft 404s, so the value you hoped to keep disappears anyway. Match each old page with the closest relevant page, or let it return a 404.
Removing redirects too early
Deleting 301s a few months after a migration can bring back broken backlinks and lost traffic. Google’s site move guidance recommends keeping redirects for at least a year. If old URLs still earn links or visits after that, keep them running indefinitely.
Forgetting internal links and sitemaps
A redirect is a safety net, not a substitute for updating your own site. Internal links, navigation menus, canonical tags, and XML sitemaps should all point directly at the final URLs. Otherwise, every crawl wastes requests on hops you control and could remove yourself.
Parting Thoughts
The Bottom Line
Choosing between a 301 and a 302 comes down to one simple, honest question: is this move forever, or just for now? Permanent moves deserve a 301 so rankings and links settle on the new URL. Short detours deserve a 302 so the original keeps its spot. Whichever you pick, test it with one of the free tools above, avoid chains and loops, and update your internal links. Spend ten minutes this week checking the redirects already on your site, and you may find quick wins hiding in plain sight.
Want an expert to check your site? Get a free manual SEO audit, reviewed by a person, in 24 to 48 hours.
FAQs
Can I change a 302 to a 301 later without hurting SEO?
Yes. Once you switch, Google will start treating the destination as canonical on its next crawls. Expect a short settling period while signals shift.
Do users notice any difference between a 301 and a 302?
Rarely. Both land visitors on the destination almost instantly. The difference mostly lives in search engines and browser caches, which remember 301s far longer.
What if I accidentally used a 301 for a temporary change?
Swap it for a 302 or remove it. Visitors whose browsers cached the 301 may keep landing on the new URL until their cache clears.
Is a canonical tag a substitute for a 301 redirect?
No. A canonical tag is a hint that keeps both pages accessible. A 301 actually moves visitors and bots, sending a much stronger signal.
How many redirects can one site safely have?
There is no fixed limit. Thousands of clean, single-hop redirects are fine. Problems start with chains, loops, and redirects pointing to irrelevant pages.