301 redirect, n.

What is a 301 redirect?

An HTTP status code that permanently moves a URL to a new location and tells search engines to index the new URL instead.

Filed under redirects and status codes in the SEO glossary

Try the free redirect checker

What a 301 redirect means

HTTP status 301 "Moved Permanently" tells browsers and crawlers that a resource has a new permanent address, given in the Location header. Browsers cache it, and search engines replace the old URL with the new one in their index over time.

Google has confirmed that 301 redirects pass ranking signals such as links to the target URL, so a correctly redirected page keeps its rankings after a move.

When to use a 301

Use a 301 whenever the change is permanent: moving to a new domain, switching from http to https, choosing between www and non-www, changing URL structure, merging two articles into one or retiring a product page in favour of a close replacement.

For temporary moves, such as a maintenance page or a short promotion, use a 302 redirect or 307 redirect so the original URL stays indexed. A 308 is the permanent equivalent of a 307 and is treated like a 301 by Google.

Best practices

Redirect each old URL to the most relevant new page, not everything to the homepage, which Google may treat as a soft 404. Point redirects straight at the final URL to avoid a redirect chain, and update internal links and your XML sitemap so they use the new URLs directly.

Keep redirects in place for at least a year after a migration, and longer if old URLs still have backlinks.

Example

A 301 in nginx and Apache:

# nginx
location = /old-page { return 301 https://example.com/new-page; }

# Apache (.htaccess)
Redirect 301 /old-page https://example.com/new-page
Check it on your site: Redirect checkerTrace every hop of a redirect chain and test http, https and www. Free, no signup.
Questions

Frequently asked questions

Does a 301 redirect lose link equity?

Google says no PageRank is lost through 301, 302 or other server-side redirects. Rankings can still fluctuate for a short time while Google processes the move.

How long should I keep a 301 redirect?

At least one year, so search engines can transfer signals. Keep it longer if the old URL still receives traffic or backlinks.

Is a 301 or a canonical tag better for duplicate pages?

Use a 301 when users no longer need the old URL. Use a canonical tag when both URLs must keep working, for example filtered or tracking-parameter versions.

Related terms

Keep learning

Full SEO glossary

More free tools

Check the rest of your SEO

All free SEO tools

Find every issue like this across your site

Fix it automatically, then see what the fix earned.

  • The AI drafts the fix for every issue like this across your site, ranked by impact
  • Approve it and the free WordPress plugin publishes it, with one-click undo
  • 28 days later, the clicks each fix earned, from your own Search Console
Fix my site free Free plan, no card · not on WordPress? Copy each fix in