SEO and AI search

301 vs 302 redirects: which should I use?

By Purlock · Updated 3 min read

The short answer

Use a 301 (or 308) when a page has moved for good: search engines pass its ranking to the new address. Use a 302 (or 307) only for temporary moves, like a short maintenance page, because search engines may keep the old address in results. Point every old address straight at its final page, since chains of redirects slow pages down. Purlock's free redirect checker shows every step and status code.

Key points

  • Permanent move: 301 or 308. Temporary: 302 or 307.
  • A 302 left in place after a migration can hold your new pages back.
  • Avoid chains: http to https to www to the final page is three hops.
  • Never redirect every old page to the homepage.

What's the difference between 301, 302, 307 and 308?

Redirect status codes
CodeMeaningKeeps the request method?Use it for
301Moved for goodNot alwaysPages that moved permanently
308Moved for goodYesPermanent moves, including forms
302Moved for nowNot alwaysShort term moves
307Moved for nowYesShort term moves, including forms

Redirect checker

See every redirect a link goes through, and where it really ends.

Try it free

Which redirect should I use when moving a page or domain?

  • Changing a page's address: 301 from old to new.
  • Moving to a new domain: 301 from every old page to the same page on the new domain, not just the homepage.
  • Forcing https or www: 301 or 308.
  • A sale page that will come back: 302 to a holding page.
  • A/B tests and short campaigns: 302.

What is a redirect chain, and why does it matter?

A chain is a redirect to a redirect. A common one: http://yourshop.com to https://yourshop.com to https://www.yourshop.com to the final page. Each hop adds a round trip before the page starts loading, and search engines may stop following long chains.

Fix chains by pointing each old address straight at the final one, and set up http, https and www so each takes at most one hop.

How do I check a page's redirects?

  1. Paste the address into the redirect checker. It follows every step and shows each address and status code.
  2. Look for 302s that should be 301s, chains longer than one hop, and loops.
  3. Check the final page returns 200, not an error.

How do I set up a 301 redirect?

Where you add a redirect depends on where your site runs. Most platforms have a settings page for it, so you rarely need to edit server files.

  • WordPress: a redirection plugin, or your host's redirect settings.
  • Shopify: Online Store, Navigation, URL Redirects.
  • Webflow: Site settings, Publishing, 301 redirects.
  • Vercel and Next.js: the redirects list in next.config or vercel.json, with permanent set to true.
  • Netlify: a _redirects file with the old path, the new path and 301.
  • Cloudflare: Redirect Rules or Bulk Redirects.

How do I move a whole site to a new domain without losing traffic?

  1. Make a list of every address on the old site, from your sitemap and from Search Console.
  2. Map each old address to its matching page on the new domain.
  3. Add a 301 redirect for every pair, page to page, and keep them for at least a year.
  4. Update your own links, sitemap and canonical tags to the new domain.
  5. Use the Change of Address tool in Google Search Console.
  6. Check a sample of old addresses with the redirect checker, and watch Search Console for not found errors.

More questions

Do 301 redirects lose SEO value?
Google has said permanent redirects pass ranking signals fully. Long chains and temporary redirects are what cause trouble.
How long should I keep a 301 redirect?
At least a year, and ideally for good. Links from other sites and old bookmarks keep using old addresses.