AboutAll ServicesFree EmailOur WorkGuidesFAQContact
ServicesSEO ServicesEcommerce RankingSpeed OptimizationWebsite AuditGoogle Ads ManagementMeta Ads ManagementSocial Media ManagementAnalytics & TrackingShopify Catalogue SEO
Build & SolutionsWordPress DevelopmentEcommerce DevelopmentCustom EcommerceFlying CartFlying AdsFlying Blog
Free ToolsAll free tools →
Domain and securityEmail Deliverability CheckWebsite Security GradeDNS CheckerWhois LookupDomain Expiry Checker
SEO and crawlingAI Crawler CheckerRedirect Checker
Ads and trackingShopify Tracking CheckUTM Builder
Store and speedSpeed ReportShopify App Weight CheckMerchant Center Readiness Check
Profiles and messagingWhatsApp Link & QR GeneratorLinkedIn Headline Generator
Dedicated SitesServices ↗Care ↗Firstlight ↗Truefeed ↗Woo2Shopify ↗Shopify ↗Realty Leads ↗AnkShakti ↗

Guide

301 vs 302 redirect: which one should you use?

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

5 min read

Short answer

A 301 is permanent: it tells browsers and search engines the old address has moved for good. A 302 is temporary: it says the old address is still the real one. Use 301 for site moves, https and www changes. Use 302 only when the original will come back.

The one-line difference

Both send a visitor from one address to another. A 301 says the move is permanent. A 302 says it is temporary and the original address is still the one to remember.

Browsers and search engines treat the two differently, and that choice is what you are really making.

What about 307 and 308

These are the newer pair. 308 is a permanent redirect and 307 is a temporary one, and both keep the request method unchanged, which matters for forms and APIs. For ordinary web pages, 308 behaves like 301 and 307 like 302.

Try it now: Redirect Checker →

When to use a 301

Use it whenever the old address is not coming back: a redesigned site with new URLs, a moved page, a switch to https, a choice between www and non-www, and a domain change.

A 301 is how rankings and links are carried from the old address to the new one.

When to use a 302

Use it when the original will return: a page down for maintenance, a short promotion that points visitors elsewhere, or testing a variation of a page.

The mistake we see most is a temporary redirect doing a permanent job, usually left behind by a plugin or a hosting rule.

Do they affect SEO differently

Google has said it treats a redirect that stays in place for a long time much like a permanent one. But you should not rely on that. A 301 states what you mean, and it removes any doubt about which address should appear in search results.

What really hurts is not the code. It is chains of several redirects, loops, and redirects that end on an error page.

How to check which one you have

Our free redirect checker follows every hop from an address to its final page and labels each as permanent or temporary. Enter a bare domain and it also checks that http, https, www and non-www all end up in one place.

How we can help

Want this done for you?

These are the services that fix what this guide describes. Prices are starting prices.

Not sure which you need? Book a free 30-minute call and bring this result, or send us a message. No obligation, no pitch deck.

Free redirect checker →Fix ERR_TOO_MANY_REDIRECTS →What to check before you migrate a store →

Want free stats on your site first?

Send us the URL. We pull the numbers from your own accounts and tell you what is wrong before there is any quote, and before there is any contract.

No pitch deck, no obligation. Bring your URL and we will look at it together.