Taskcover Agency logo

Technical SEO

301 vs 302 Redirects and the Status Codes That Matter

The short answer

A 301 redirect says a page has moved for good, and a 302 says the move is temporary. Google follows both. It treats a 301 as a strong signal that the new address should replace the old one in search results, and a 302 as a weak signal, so the old address can stay listed.

Key takeaways

  • Use a 301 when a page has moved for good and a 302 when the old address will come back.
  • Google says permanent redirects do not cause a loss in PageRank, its measure of the links pointing to a page.
  • A page that no longer exists should answer 404 or 410. Google treats the two the same way.
  • A page that says "not found" while answering 200 is called a soft 404, and Google recommends a real 404 instead.
  • During maintenance, answer 503, and for no longer than a day or two.

Written byJamiez NguyenFounder & CEO

Reviewed byJohn EdwardCTO

Updated

Fact-checked

Reading time8 min

In this guide

Every time a browser or Google asks your site for a page, the server answers with a three-digit number before anything else. That number is the HTTP status code. This guide is for owners who are changing addresses, removing pages or reading an error report. It covers the 301 vs 302 redirect choice and the few other codes that affect search. Getting them right across a site is part of our technical SEO service.

Which HTTP status codes matter for SEO?

A handful. Each tells Google what happened to the page it asked for, and Google documents what it does with each one.

The status codes that matter for search, and how Google's documentation says it handles them.
CodeWhat it meansWhat Google does
200The page is herePasses the content on to be considered for its index. Google says indexing is not guaranteed.
301 or 308Moved for goodFollows the redirect and takes it as a strong signal that the new address is the one to list.
302 or 307Moved for nowFollows the redirect and takes it as a weak signal. The old address can stay in results.
404 or 410Not found, or removedIgnores the content, removes the address from its index if it was listed, and comes back less often.
401 or 403Login needed, or access refusedHandles it like other errors in this group: the page is not listed.
429Too many requestsTreats it as a sign the server is overloaded, and slows its crawling.
500, 502 or 503The server failed or is unavailableSlows its crawling. Addresses that keep failing are removed from its index.

301 vs 302 redirect: which should you use?

Use a 301 when the old address is never coming back, and a 302 when it is. Google says to choose by how long you expect the redirect to stay in place and which page you want shown in results.

Choosing the redirect

  • A page has a new address, or the site has a new domain301 (or 308)
  • Two pages were merged into one301 from the page that was dropped to the one that was kept
  • A page is replaced for a few weeks, such as a seasonal offer, and will return302 (or 307)
  • You are not sure the change will last302 for now. Google says to use a permanent redirect when you are sure it will not be reverted

Google's redirects page says a permanent redirect is used as a signal that the target should be canonical, meaning the version Google lists. A temporary redirect is not used that way, so the original address can remain in results.

SourceGoogle Search Central

For your developer: the HTTP standard defines 308 and 307 as the permanent and temporary redirects that keep the type of request unchanged, while a browser may switch a form submission to an ordinary page request after a 301 or 302. That matters for forms and for software that talks to your site. For pages, Google treats 308 like 301 and 307 like 302.

Do redirects hurt SEO?

Not when each old address points to the page that replaced it. Google's site move guide states that 301 and other permanent redirects do not cause a loss in PageRank. What costs you is a redirect set up badly.

Redirect mistakes, and what Google's documentation says about each.
MistakeWhat Google saysWhat to ask your developer
Every old page sent to the home pageDo not redirect many old addresses to one irrelevant destination. It may be treated as a soft 404.Does each old address land on its matching new page?
A redirect that leads to another redirectGooglebot follows up to 10 hops, but redirect straight to the final address. If you cannot, ideally no more than 3 and fewer than 5.How many hops does our longest redirect take?
A temporary redirect used for a permanent moveA temporary redirect is not a signal that the new address should be listed.Are our permanent moves answered with a 301 or 308?

Most redirect problems appear after a redesign or a change of domain. How to redesign a website without losing SEO covers the full list of old and new addresses you need.

404 vs 410: what should a removed page return?

Either one. A 404 says the page was not found and a 410 says it is no longer available. Google's documentation says it treats all errors in this group, apart from 429, the same way, and its crawl budget guide advises a 404 or 410 for pages removed for good.

  • Use a 404 or 410 when nothing on the site does the same job as the removed page.
  • Use a 301 only when another page does the same job for the visitor.
  • Give the error page a clear message and links to your main sections, and make sure it still answers 404.
  • For products that sell out or are withdrawn, see out-of-stock and discontinued products.

What is a soft 404, and how would you notice one?

A soft 404 is a page that tells the visitor nothing is there while telling Google, with a 200, that all is well. Google describes it as a page with a success status whose content suggests an error, such as an empty page or an error message. You would notice it as the reason "Soft 404" in the Page indexing report in Google Search Console.

  • A friendly "page not found" design that answers 200.
  • A category or search page with no items in it.
  • Removed pages redirected in bulk to the home page.
  • A site built as a single-page app, where the same shell answers 200 for every address.

Google's recommendation is to return a 404 for pages that are truly not found. Its crawl budget guide adds that soft 404 pages keep being crawled, which wastes Google's visits on a large site.

What should your site return during maintenance or an outage?

A 503, which the HTTP standard defines for temporary overload or scheduled maintenance. The standard also provides a Retry-After line that suggests how long to wait. Google says error codes like this slow its crawling, and that a page returning them for multiple days may be dropped from its index. Keep planned downtime to hours. Never show a maintenance message with a 200, because Google may read the message as the page.

How does your developer test a redirect?

By asking for the old address and reading every answer on the way to the final page. One command shows each hop and its status code.

# Show each hop from the old address to the final page
curl -sIL https://example.com/old-page | grep -i -E "^(HTTP|location)"

What a redirect test should confirm

  • One hopThe old address answers once with a redirect, and the next answer is a 200.
  • The right codeA 301 or 308 for a permanent move, a 302 or 307 for a temporary one.
  • The right destinationThe final page does the same job as the old one. It is not the home page by default.
  • Every version of the addressWith and without www, with http and https, and with or without a closing slash, each ends at the same final address.
  • No bystanders caughtAn address that merely looks similar to the old one is unaffected by the rule.
  • Links and sitemap updatedYour own menus, links and sitemap point to the new address, so visitors and Google skip the redirect.

A status code review across every address on a site is part of Taskcover's one-time Technical SEO Audit, which starts from $2,500. Building the fixes is priced separately unless it is part of your plan. See the pricing page.

Related service

Technical SEO: every address answers the way it should

We test your redirects, error pages and server responses, and write each fix as a clear task for your developer.

See the service

Questions people ask about redirects and status codes

How long should I keep a 301 redirect in place?

As long as you can. Google's site move guide says to keep redirects for as long as possible, generally at least one year. Old links on other websites and in people's bookmarks keep working only while the redirect exists.

Is a 308 redirect better than a 301?

Not for search. Google treats a 308 the same as a 301. The difference is technical: a 308 keeps the type of request unchanged, which matters for forms and software talking to your site, not for ordinary pages.

Are 404 errors bad for my website?

A 404 on an address that should not exist is the correct answer, and Google leaves that address out of its index. It is a problem when a page customers need is missing, or when your own menus and links point to it. Google's advice for a page that has moved is a 301 redirect to its new address.

Does Google follow redirects made with JavaScript or a meta refresh tag?

It can. Google reads an instant meta refresh as a permanent redirect. A JavaScript redirect is only seen once Google has built the page, and Google says that step can fail. Its site move guide says to use server-side redirects where technically possible.

Search Console says "Page with redirect". Is that an error?

No. Google's help page describes it as an address that redirects to another page. It is the old address, and it is not listed because the new one is meant to be. Check that the destination is the right page and leave it alone.

Changing addresses, or seeing errors in Search Console?

Send us your website and we will show you which pages answer with the wrong code and what to fix first, at no cost.

The authors

Who wrote and checked this guide

Jamiez Nguyen, Founder and CEO of Taskcover Agency

Written by

Jamiez Nguyen

Founder & CEO

Jamiez Nguyen founded Taskcover and leads strategy and client growth. He started it in 2017 as a team doing search work behind the scenes for other agencies, then opened it to businesses in the USA, Canada and Australia.

John Edward, CTO of Taskcover Agency

Reviewed by

John Edward

CTO

John Edward leads the technical side of Taskcover: how sites are built, how fast they load, and how search engines read them.

Updated Fact-checked About the people at Taskcover

Sources

Where the facts in this guide come from

Facts last checked on October 12, 2026.

  1. Redirects and Google SearchGoogle Search CentralChecked on October 12, 2026
  2. How HTTP status codes affect Google's crawlersGoogle Crawling InfrastructureChecked on October 12, 2026
  3. How to move a siteGoogle Search CentralChecked on October 12, 2026
  4. Page indexing reportGoogle Search Console HelpChecked on October 12, 2026
  5. Optimize your crawl budgetGoogle Crawling InfrastructureChecked on October 12, 2026
  6. Reduce the Google crawl rateGoogle Crawling InfrastructureChecked on October 12, 2026
  7. RFC 9110: HTTP SemanticsIETFChecked on October 12, 2026

Free SEO audit

Find out what search could bring your business.

Send us your website. We will show you where you stand, what is holding you back, and what we would do first.

Free, with no obligation.

  1. You send your websiteA short form. It takes about two minutes.
  2. We review itYour site, your competitors and what your customers search for.
  3. You get a clear planWhat to fix first, what it could bring, and what it would cost.

Taskcover uses necessary storage for security and forms. You can choose whether we use preferences, analytics, and marketing measurement.