301 vs 302 Redirects: Which to Use and Why

By Simon White ·

A 301 redirect is a permanent HTTP redirect that tells browsers and search engines a page has moved for good, so the new URL should replace the old one in search results. A 302 is a temporary redirect: it sends visitors elsewhere for now but tells Google to keep the original URL. Pick based on whether the move will last.

Getting this wrong rarely breaks a site overnight, but it quietly confuses which URL Google shows and wastes crawling. Below is when to use each code, what happens to rankings, and how to avoid chains, loops and messy migrations.

What is the difference between 301, 302, 307, 308 and 410?

The difference is permanence and whether the request method may change. The HTTP standard, RFC 9110, defines the codes, and Google’s redirects documentation explains how Search treats them. Permanent redirects are a strong signal that the target should be the canonical URL. Temporary ones keep the source URL in results.

CodeMeaningHow Google treats itUse it for
301 Moved PermanentlyThe page has a new permanent addressStrong signal the target becomes canonicalChanged URLs, merged pages, domain and HTTPS moves
308 Permanent RedirectSame as 301, but the browser must not change the request methodTreated like a 301Permanent moves where forms or API calls send POST requests
302 FoundThe page is temporarily somewhere elseSource URL usually stays in resultsShort-term promotions, A/B tests, maintenance
307 Temporary RedirectSame as 302, but the method must not changeTreated like a 302Temporary moves that must keep POST requests intact
410 GoneRemoved on purpose and likely permanentHandled the same as a 404Content you deleted and won’t replace

Two notes on that table. First, the 301 and 302 specs allow a browser to switch a POST request to GET for historical reasons, which is why 307 and 308 exist. For ordinary page moves that difference doesn’t matter to SEO. Second, Google’s HTTP status code documentation says all 4xx errors except 429 are treated the same, so a 410 and a 404 both lead to the URL dropping out of the index. Use 410 if it helps your own record keeping, but don’t expect faster removal from Google.

Server-side redirects are the reliable option. Google also reads instant meta refresh as permanent and delayed meta refresh as temporary, and it treats JavaScript redirects as permanent, but only if rendering succeeds. Use those only when you can’t touch the server.

When do I use a 301?

Use a 301 (or 308) whenever the old URL is never coming back. Google advises a permanent redirect when you’re sure it won’t be reverted. Common cases:

  • You changed a page’s URL slug or folder structure.
  • You merged two thin pages into one stronger page.
  • You moved from HTTP to HTTPS, or from www to non-www.
  • You moved to a new domain or rebranded.
  • You retired a product and have a close replacement worth sending people to.

Use a 302 or 307 only when you’ll switch back: a seasonal page, a short test, or a temporary outage page. The mistake I see most is a 302 left in place for months because a plugin or developer defaulted to it. If a temporary redirect is effectively permanent, change it to a 301 so the signal matches reality.

Do redirects lose ranking?

Not by themselves. Google’s site move guidance states that 301 and other permanent redirects don’t cause a loss in PageRank. A redirected URL passes its link signals to the target.

Rankings do drop after redirects for other reasons:

  • Irrelevant targets. Redirecting many old pages to the home page. Google specifically advises against sending many old URLs to one unrelated page such as the home page.
  • Lost content. The new page covers less than the old one, so it no longer matches the queries the old page ranked for.
  • Temporary signals. A 302 keeps the old URL as canonical, so the new URL struggles to take over.
  • Conflicting signals. Internal links, sitemaps and canonical tags still point at the old URLs, so Google gets mixed messages about which address you prefer.
  • Removed too soon. Taking redirects down before Google and other sites have caught up.

Expect some fluctuation for a few weeks after a large change while Google recrawls. That is normal and isn’t caused by the redirect type alone.

What are redirect chains and loops?

A redirect chain is when URL A redirects to B, which redirects to C. A loop is when the chain circles back on itself, so the page never loads at all.

Google’s crawlers follow up to 10 redirect hops, but its site move guidance asks you to redirect straight to the final destination and, if you can’t, to keep chains short, ideally no more than 3. Each hop adds delay for users and spends crawl requests that could go to real pages, which matters on large sites with a tight crawl budget.

Chains usually build up over years: HTTP to HTTPS, then www to non-www, then a slug change. To fix them:

  1. Crawl the site and export every redirect with its full hop path.
  2. Update each rule so the first URL points directly at the final destination.
  3. Change internal links to point at final URLs, so users and bots skip redirects entirely.
  4. For loops, find the two rules that contradict each other, usually a CMS setting fighting a server rule, and remove one.

How do I map redirects for a migration?

Build a one-to-one map of every old URL to its closest new equivalent before launch. Google’s site move guidance calls this mapping important, and it is where most migrations succeed or fail. A simple spreadsheet works:

Old URLNew URLCodeSource of old URLChecked
/services/seo-audit.html/seo-audit/301SitemapYes
/blog/2019/link-tips//link-building-tips/301Backlink reportYes
/old-product/(none, no equivalent)410AnalyticsYes

Pull old URLs from every source you have: the current sitemap, a full crawl, analytics landing pages, Search Console performance data and your backlink tool. Pages with links or traffic come first. Then:

  • Send each URL to the most relevant new page, not the home page.
  • Give new pages self-referencing canonicals and submit a sitemap of the new URLs.
  • Update internal links right after launch.
  • Test every row of the map on launch day and watch Search Console for spikes in 404s.
  • Keep the redirects in place for as long as possible. Google says generally at least one year, and visitors benefit from keeping them indefinitely.

For the full launch checklist, see the website migration guide.

FAQ

Is a 302 bad for SEO?

No, as long as the move really is temporary. It becomes a problem when it stays in place for a permanent change, because the old URL keeps the canonical signal.

Should I use a 301 or a 410 for deleted pages?

Use a 301 if there is a closely related page that serves the same need. If there isn’t, return a 404 or 410 and let the URL drop out of the index.

How long should I keep 301 redirects?

Google recommends generally at least one year after a site move. In practice, keep redirects for any URL that still has backlinks or traffic.

Do redirects slow down my site?

Each hop adds a round trip before the page loads. One redirect is rarely noticeable, but chains add up, especially on mobile connections.

Redirect cleanup is part of every SEO audit I run, and it ties into the rest of your technical SEO. If you’re planning a migration or traffic dropped after one, talk to Simon before the old URLs go cold.

About the author

Simon White

Simon White is an SEO & AI consultant based in Encinitas, California, and co-founder of the digital marketing agency Local Blitz, which has served clients since 2009. A former electrical engineer with more than 15 years in SEO, he now helps businesses get found in Google and in AI answers through SEO, answer engine optimization (AEO) and generative engine optimization (GEO).

More about Simon →

Need help with this?

Get a clear SEO plan for your business

Simon has spent more than 15 years helping businesses rank and grow. Tell him where you are now and where you want to be.