Skip to content
Enjoy 20% off for 12 months on all plans. Use promo code: HYPERGROWTHClaim it

Crawling and indexing

What is a 301 redirect, and do you keep your rankings?

A 301 redirect is a server response that tells browsers and search engines a page has moved for good to a new URL, and sends the visitor there automatically.

Also calledPermanent redirect301 Moved Permanently

An old URL moving for good

  1. 1Request: /services/boiler-repair
  2. 2Response: 301 Moved Permanently
  3. 3Location: https://example.com/heating/boiler-repair
  4. 4Request: /heating/boiler-repair, response 200 OK

One redirect, then the page. Google advises sending an old URL straight to its final address rather than through a chain.

How a 301 works

When a browser asks for the old URL, the server answers with the status code 301 Moved Permanently and a Location header naming the new URL, and the browser requests that one instead. Google's documentation says Googlebot follows the redirect and treats the new URL as the one to show in search results.

Do you keep your rankings?

Google treats a permanent redirect as a signal that the new URL should replace the old one. For a site move, it says to keep redirects for as long as possible, generally at least a year, so it can pass all signals to the new URLs, including links from other sites.

Rankings are usually lost at the target, not the redirect. Google warns that sending many old URLs to one unrelated page, such as the home page, can be treated as a soft 404. Send each old URL to the page that replaces it, and in one hop: Googlebot follows up to 10 redirects in a chain, but Google advises going straight to the final URL.

301, 302 and the other redirects

Google's documentation sorts them by how long the move lasts:

  • 301 and 308: permanent. Google shows the new URL in results.
  • 302, 303 and 307: temporary. Google keeps showing the old URL, for example while a service is briefly unavailable.
  • Meta refresh: a redirect set in the page's HTML. Google treats an instant one as permanent and a delayed one as temporary.
  • JavaScript redirect: use it only when a server redirect or meta refresh is not possible, Google says.

SEO glossary

Every term starts with a one-sentence answer and links the free tool or lesson that helps next.

All terms

301 redirect: questions people ask

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

A 301 says the move is permanent, so Google shows the new URL in results. A 302 says it is temporary, so Google keeps the old URL in results.

How long should I keep a 301 redirect?

Google says as long as possible, generally at least a year after a site move. For visitors following old links, keeping it for good does no harm.

Is a meta refresh the same as a 301?

Not quite. It is set in the page's HTML, not on the server. Google treats an instant meta refresh as permanent, but recommends a server-side 301 when you can set one up.

Should I redirect deleted pages to my home page?

No. Google says redirecting many old URLs to one unrelated page can be treated as a soft 404. Redirect to the closest replacement, or let the page return a 404 if nothing replaces it.

See which searches your own site should answer next.

Start with the plan for your own site: which page targets each search, and what to write next. The first one is free.

  • Free first plan
  • No credit card
  • Keep your plan