Cyber SEO: 50% off
Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Accept all cookies

301 vs 302 Redirect: The Differences, the SEO Impact and When to Use Each

301 vs 302 redirect: a 301 is permanent and makes the new URL canonical, a 302 is temporary and keeps the old one. When to use each, plus 307, 308 and SEO tips.

Published on
28/10/2026
Updated on
28/10/2026
Reading time
4 min
Cover of the guide comparing 301 and 302 redirects, with a table of status codes and the URL Google shows

Tools

On this page

In short

a 301 redirect says a page has moved permanently: Google treats the new URL as the one to show in search results and transfers the old page's signals to it. A 302 redirect says the move is temporary: Google keeps showing the original URL. Use a 301 (or 308) for migrations, URL changes and merged pages; use a 302 (or 307) for short-term situations such as a temporary promotion, maintenance or A/B tests. Choosing the wrong one rarely destroys rankings, but it sends Google the wrong signal about which URL to keep.

Want to go further? Ask

Quick quiz

Who should fix the technical side of your site?

Question 1 of 425%
What is happening today?

The 301 vs 302 redirect question comes up in every migration, redesign and URL cleanup. Google's documentation on redirects and Google Search explains that the redirect type is a signal for which URL should be canonical. This guide compares the codes, shows when to use each, and lists the mistakes that cost traffic. For the full topic, see our guide to SEO redirects.

What is the difference between a 301 and a 302 redirect?

CodeNameTypeURL Google shows in resultsTypical use
301Moved PermanentlyPermanentThe targetMigration, URL change, merged pages
308Permanent RedirectPermanentThe targetSame as 301, keeps the request method
302FoundTemporaryThe sourceTemporary page, maintenance, test
307Temporary RedirectTemporaryThe sourceSame as 302, keeps the request method
303See OtherTemporaryThe sourceAfter a form submission

According to Google, permanent redirects make the target the URL shown in search results, while temporary redirects keep the source page there; the target may still be indexed if other canonical signals point to it. The HTTP status codes themselves are defined in the web standard RFC 9110.

Both pass signals to the target. Google has said for years that redirects do not lose PageRank, so a 302 does not "waste" link value. The real difference is the canonical choice: with a 302, Google keeps the old URL as the main one, so the new URL may not rank in its place. If a "temporary" redirect stays in place for a long time, Google may eventually treat it like a permanent one, but relying on that is a gamble. Our glossary entries on the 301 redirect and the canonical tag detail the signals.

Note

Google also reads instant meta refresh redirects as permanent and delayed ones as temporary, and treats JavaScript redirects as a last resort because rendering can fail. Server-side 301 or 308 redirects remain the most reliable.

When should you use a 301 redirect?

  • Site migration: new domain, HTTP to HTTPS, change of CMS or URL structure (see SEO migration and Google's guide to site moves with URL changes).
  • Changed URL: a renamed slug or a page moved to another folder.
  • Merged content: two articles on the same intent combined into one.
  • Deleted page with an equivalent: a discontinued product redirected to its replacement or category.
  • Preferred domain: www and non-www, trailing slash variants, all pointing to one canonical URL.

When should you use a 302 redirect?

  • Temporary page: a seasonal landing page that replaces a product page for a few weeks.
  • Maintenance: sending visitors to a notice while a section is offline.
  • Tests: A/B tests that send part of the traffic to a variant URL.
  • Out-of-stock with return planned: a short redirect to a similar product.
  • Geolocation or language suggestions, used with care so Google can still crawl every version.

Example

A shop renames /winter-coats to /coats. That move is final: a 301. During a two-week sale, it sends /coats to /coats-sale and will switch back: a 302. Using a 301 for the sale would invite Google to replace /coats with /coats-sale in results, then have to undo it.

Common redirect mistakes

MistakeEffectFix
302 used for a permanent moveOld URL kept in resultsSwitch to 301 or 308
Redirect chains (A to B to C)Slower crawl and pages, signals dilutedRedirect A directly to C
Redirect loopsPage unreachableFix the rule that points back
Everything redirected to the home pageTreated like a soft 404Redirect to the closest equivalent page
Internal links still pointing to old URLsUnnecessary redirects on every clickUpdate internal links to the final URL

Tip

After any batch of redirects, crawl the old URLs and check that each returns a single 301 to a page that answers 200. The free redirect checker shows the full chain and status codes for a URL.

How to set up a 301 or 302 redirect

On most CMSs, a redirect manager or plugin handles it; on servers, rules in the web server configuration (Apache, Nginx) or the hosting dashboard; on frameworks, the routing or middleware. Whatever the method, choose the code deliberately, test it, and keep a list of redirects so they survive the next redesign (see website redesign SEO). The canonical checker confirms that the target page declares itself as canonical.

The bottom line

Use a 301 when the move is final and a 302 when you will switch back; both pass signals, and the difference is which URL Google keeps. Keep redirects direct, update internal links, and audit them after every migration. Sorank, SEO and GEO software that runs on autopilot, keeps publishing and linking content on clean URLs once your structure is set; see the Sorank plans, with a 3-day free trial. For the indexing side, read Google indexing.

Frequently asked questions

Is a 302 redirect bad for SEO?

No, when it is used for a temporary move. It passes signals like a 301 but tells Google to keep the original URL in results. It becomes a problem when used for a permanent change, because the new URL may not replace the old one in search results.

How long should I keep a 301 redirect?

As long as possible, ideally permanently, and at least one year after a migration. Old URLs keep receiving visits from bookmarks and external links, and removing redirects too early turns them into 404 errors.

What is the difference between 301 and 308?

Both are permanent redirects and Google treats them the same way for search. A 308 also guarantees that the request method and body stay the same, which matters for forms and APIs; for regular pages, 301 is the common choice.

Free SEO & GEO audit

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Our free SEO tools

See all our free tools

Get a free audit of your site

THEY TRIED SORANK BEFORE YOU

Testimonials from ambitious founders

Organic growthE-commerce

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.fr
Organic growthSoftware

0 to 5000 clients in 8 months

Thibault BMsorank.com
Organic growthLeisure and aviation

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.com
Organic growthLead generation for installers

x98 clicks in 2 months

LeadBolt Agencyleadbolt.online
Organic growthMusic software

x55 clicks in 5 months

Valentin Cordiertiger-sounds.com