301 or 302 Redirect: Which One to Choose for SEO?
A 301 signals a permanent change, a 302 a temporary one. Choosing well avoids traffic losses.
· 1 min read
A redirect automatically sends the visitor, and bots, from one URL to another. The HTTP code used indicates whether the change is permanent or temporary.
The two main codes
- 301 (Moved Permanently): the old address is permanently replaced by the new one.
- 302 (Found): the move is temporary, the old address will come back.
Their more recent equivalents are 308 (permanent) and 307 (temporary). They produce the same SEO effects.
What does Google say?
Google states that permanent redirects are a strong signal that the new URL should be the one appearing in results, while temporary redirects are a weaker signal. In both cases, link value is passed on. The difference therefore mostly concerns which URL Google selects and displays.
When to use a 301
- Migrating a site to a new domain.
- Moving from http to https.
- Choosing a single version of the site (www or non-www).
- Changing the URL of a page or redesigning the structure.
- Merging pages or removing content that has an equivalent page.
When to use a 302
- An A/B test that temporarily sends part of the traffic to another version.
- A page under maintenance or a time-limited promotion.
- Redirecting by the user's language or location, with caution.
Best practices
- Redirect to the equivalent page, not systematically to the homepage: an off-topic redirect may be treated as an error.
- Avoid chains (A to B to C) and loops: redirect straight to the final destination.
- Update internal links, the sitemap and canonicals so they point to the new URL.
- Keep redirects long enough: Google recommends at least one year when changing sites.
- Test with a crawler or the URL inspection tool after setting them up.
Common mistakes
- Using a 302 by default for a permanent migration.
- Redirecting thousands of old URLs to a single unrelated page.
- Letting redirect chains pile up after several redesigns.
- Redirecting with JavaScript or a meta refresh tag when a server redirect is possible.
Check your site for free
SEO audit, speed, security, E-E-A-T… results in seconds.
Run an SEO audit →
Keep reading
Technical SEOCore Web Vitals: LCP, INP, CLS and How to Improve ThemCore Web Vitals are three Google metrics that measure real visitor experience: loading, responsiveness and visual stability.Technical SEOThe robots.txt File: What It Does and How to Use ItThe robots.txt file controls how bots crawl your site. Careful: it is not a way to prevent indexing.Technical SEOThe Canonical Tag: What It Is and How to Use ItThe canonical tag designates the version to prefer when several URLs show identical or very similar content.