Free auditStart free
GlossaryGlossary · Crawling

301 redirect

What a 301 redirect does, how Google treats it, 301 versus 302 and 308, and working server snippets for Apache and Nginx.

4 min
read
5
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

A 301 redirect is an HTTP response that says a resource has moved permanently to the URL in the Location header. Browsers follow it automatically. Google treats a permanent redirect as a signal that the redirect target should be canonical. Use it when the old URL will not come back, such as a site move or merged pages, not for temporary detours.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Check it

What a 301 redirect is

MDN defines 301 Moved Permanently as indicating "the requested resource has been permanently moved to the URL in the Location header." RFC 9110 says any future references to the resource ought to use one of the enclosed URIs.
A 301 response
HTTP/1.1 301 Moved Permanently
Location: https://example.com/new-page
03Your call

Tips most guides miss

If this fits

Use 301 or 308 if

  • The old URL is gone for good
  • You're moving to a new domain or merging sites
  • You want the new URL indexed in place of the old
Or

Use 302 or 307 if

  • The original URL will come back
  • You're running a short test or maintenance detour
  • You want Google to keep showing the old URL
  • An instant meta refresh counts as permanent. Google lists 301, 308 and instant meta refresh as permanent, and 302, 303, 307 and delayed meta refresh as temporary.
  • Server-side wins. Google says a server side redirect has the highest chance of being interpreted correctly, and JavaScript redirects are for when nothing else is possible.
  • Temporary redirects aren't a canonical signal. For 302, 303 and 307 Google says the indexing pipeline doesn't use the redirect as a signal that the target should be canonical, though the target may still be indexed if other canonicalization signals are present.
  • Chains cost crawling. Google says to avoid long redirect chains because they have a negative effect on crawling. The default limit is 10 hops, but specific products' crawlers may differ.
04Check it

Set up a 301

Server-side redirects are the most reliable, per Google. Pick the one that matches your stack.
Nginx
location = /old {
  return 301 https://example.com/new;
}

If you cannot edit server config, Google says an instant meta refresh is treated as permanent, and JavaScript redirects are a last resort because Google "might never see it if rendering of the content failed."

Apache
Redirect permanent "/old" "https://example.com/new"
05How it works

Verify it

  1. 1

    Check the response

    Run curl -I https://example.com/old. You should see 301 and a Location header with the exact destination.

  2. 2

    Check for chains

    Run curl -IL https://example.com/old and count the hops. Point the old URL straight at the final URL.

  3. 3

    Inspect the destination

    Google says its Inspection Tools don't follow redirects, so test the redirect with curl and inspect the destination URL in Search Console instead of the old one.

06Checklist

Common mistakes

  1. 01Using 302 for a permanent move. Google treats it as a weak signal for the target.
  2. 02Redirecting to a page that does not replace the old one, such as sending every old URL to the homepage. Google's doc says to redirect links to outdated URLs to the correct pages.
  3. 03Leaving chains in place (A to B to C). Redirect A directly to C.
  4. 04Treating old URLs that still appear in results as a failure. Google says after a domain move it is normal, and the alternate names fade without you doing anything.
  5. 05Relying on a 301 for a POST form. A 301 may change the method to GET, so use 308 if the method must be preserved.
Sources · 5

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  • mozilla.org
  • rfc-editor.org
  1. 01Redirects and Google Searchdevelopers.google.com · checked 2026-10-24
  2. 02How HTTP Status Codes Affect Google's Crawlersdevelopers.google.com · checked 2026-10-24
  3. 03301 Moved Permanently (MDN)developer.mozilla.org · checked 2026-10-24
  4. 04RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-24
  5. 05Crawl Budget Managementdevelopers.google.com · checked 2026-10-24
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Does a 301 pass ranking signals?

MDN says search engines attribute links to the original URL to the redirected resource, passing the ranking to the new URL. Google's documentation says a permanent redirect signals that the target should be canonical. Neither promises that rankings stay identical after a move.

02What is the difference between 301 and 308?

Both are permanent. With a 301, a client may change a POST request to GET on the redirected request. A 308 prohibits changing the method. For ordinary page moves, 301 is fine.

03How many redirects will Google follow?

By default, Google's crawlers follow up to 10 redirect hops. Long chains still waste crawling and slow users, so aim for a single hop.

Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly