Free auditStart free
GuideError · HTTP status codes

HTTP 301 Moved Permanently

HTTP 301 means a URL has moved for good. See what the status does to browsers and Google, how to set it in nginx and Apache, and how to fix a bad 301.

4 min
read
7
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
The short answer

HTTP 301 Moved Permanently means the requested URL now has a new permanent address, given in the Location header. Browsers follow it automatically. Google treats it as a strong signal that the target is the page to process. The origin server or a CDN rule sends it on purpose, so a 301 you did not expect is a rule to find, not a fault.

  1. What a 301 response means
  2. What to do if you hit a 301 as a visitor
  3. How to set up a 301 (site owners)
  4. How to find the cause of an unexpected 301
  5. 301 compared with the other redirect codes
30-second check

Where does your site stand?

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 response means

RFC 9110 says a 301 indicates that the target resource "has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs." The server SHOULD send a Location header with the new address, and the client MAY follow it automatically. A 301 is also heuristically cacheable, so browsers and proxies can reuse it without asking again.

The server, not the visitor or the browser, causes a 301. It is the right answer when a URL is retired and replaced. It is the wrong answer when the move is a test or an outage; use 302 or 307 for that.

A minimal 301 exchange
GET /old-page HTTP/1.1
Host: example.com

HTTP/1.1 301 Moved Permanently
Location: https://example.com/new-page
02Checklist

What to do if you hit a 301 as a visitor

First1
Nothing, usually. The browser follows the Location header and you land on the new page. A 301 you can see is a sign something stopped following it.
Next1
Update your bookmark to the address in the address bar after the redirect. RFC 9110 notes a client with link-editing capability can replace the old reference, but says that suggestion is usually ignored, so your browser will not do it for you.
Then1
Seeing a raw 301 in a script or tool? Turn on redirect following (for curl, the -L flag) or request the Location URL directly.
03Check it

How to set up a 301 (site owners)

Google recommends a permanent server-side redirect when you need to change the URL shown in results. Pick the layer that already owns your redirects and put the rule in one place only.
Apache: mod_alias in the server config or .htaccess
Redirect permanent "/old-page" "https://example.com/new-page"

nginx's return directive accepts a redirect URL for codes 301, 302, 303, 307 and 308. In Apache, Redirect permanent returns 301, and the Apache docs say POST bodies are discarded. If the redirected URL receives form posts or API calls, use 308 so the method survives.

nginx: return in the server or location block
location = /old-page {
    return 301 https://example.com/new-page;
}
05Redirect status codes at a glance

301 compared with the other redirect codes

Code

301

Meaning
Permanent
Method on redirect
May change POST to GET
Typical use
Page or site moved for good
Code

308

Meaning
Permanent
Method on redirect
Must not change
Typical use
Permanent move that keeps POST
Code

302

Meaning
Temporary
Method on redirect
May change POST to GET
Typical use
Short detour, test, outage
Code

307

Meaning
Temporary
Method on redirect
Must not change
Typical use
Temporary move that keeps POST
Code

303

Meaning
See other resource
Method on redirect
Retrieval (GET or HEAD)
Typical use
Send the browser to a result page after a POST

RFC 9110 says that for historical reasons a client MAY change a POST to GET on a 301, and that 308 can be used if that behavior is undesired. MDN adds that the Fetch Standard changes POST to GET after a 301.

06Explained

What it does to SEO

Google says its indexing pipeline uses a permanent redirect as a signal that the redirect target should be canonical, and its crawler guide calls a 301 a strong signal that the target should be processed. Googlebot follows up to 10 hops by default. Use a 301 only when you are sure the redirect will not be reverted, and keep chains short. For the audit view, see temporary redirects, redirect chains and the 301 redirect glossary entry, plus Google's redirects documentation.

Questions

Asked a lot.

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

01What does HTTP 301 mean?

It means Moved Permanently. The requested resource has a new permanent URI, sent in the Location header, and future references ought to use it.

02What is the difference between 301 and 308?

Both are permanent. With a 301 a client may change POST to GET on the redirected request; a 308 does not allow the method to change, per RFC 7538 and MDN. See 308.

03Does a 301 pass SEO value?

Google says a permanent redirect is a signal that the target should be canonical. It does not publish a ranking percentage, so avoid promising one.

04How do I remove a 301?

Delete or change the rule in the layer that sends it, then clear caches. A browser that stored the redirect may keep using it until its cache is cleared.

Sources · 7

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • google.com
  • nginx.org
  • apache.org
  1. 01RFC 9110: HTTP Semantics, Redirection 3xxrfc-editor.org · checked 2026-10-25
  2. 02RFC 7538: The Hypertext Transfer Protocol Status Code 308 (Permanent Redirect)rfc-editor.org · checked 2026-10-25
  3. 03MDN: 301 Moved Permanentlydeveloper.mozilla.org · checked 2026-10-25
  4. 04Redirects and Google Searchdevelopers.google.com · checked 2026-10-25
  5. 05How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
  6. 06nginx: ngx_http_rewrite_module, returnnginx.org · checked 2026-10-25
  7. 07Apache HTTP Server 2.4: mod_alias, Redirecthttpd.apache.org · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane