# 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.

Canonical: https://scaplet.com/errors/http/301

Guide Error · HTTP status codes

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

301 3xx · Redirection

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](#what-a-301-response-means)
2. [What to do if you hit a 301 as a visitor](#what-to-do-if-you-hit-a-301-as-a-visitor)
3. [How to set up a 301 (site owners)](#how-to-set-up-a-301-site-owners)
4. [How to find the cause of an unexpected 301](#how-to-find-the-cause-of-an-unexpected-301)
5. [301 compared with the other redirect codes](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F301%20(%22HTTP%20301%20Moved%20Permanently%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F301%20(%22HTTP%20301%20Moved%20Permanently%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F301%20(%22HTTP%20301%20Moved%20Permanently%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F301%20(%22HTTP%20301%20Moved%20Permanently%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Check 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](/errors/http/302) or [307](/errors/http/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
```

_02_Checklist

## What to do if you hit a 301 as a visitor

First_1_
**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.

Next_1_
**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.

Then_1_
**Seeing a raw 301 in a script or tool?** Turn on redirect following (for curl, the `-L` flag) or request the `Location` URL directly.

_03_Check 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](/errors/http/308) so the method survives.

nginx: return in the server or location block

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

_04_Where a 301 can come from

## How to find the cause of an unexpected 301

Layer

### CDN or edge rule

Where to look

Redirect or page rules in the CDN dashboard

Typical cause

[HTTPS](/glossary/https) or www to non-www rule

Layer

### Web server

Where to look

`return 301` in nginx, `Redirect` in Apache config or `.htaccess`

Typical cause

Old migration rule never removed

Layer

### Application or CMS

Where to look

Redirect manager, framework middleware

Typical cause

[Slug](/glossary/url-slug) change or trailing-slash rule

Layer

### [Browser cache](/glossary/http-caching)

Where to look

DevTools Network with cache disabled

Typical cause

301 cached from an earlier rule

Run `curl -sI https://example.com/old-page` and read the `Location` header, then repeat on the target until you get a 200. Each extra hop is a [redirect chain](/seo-issues/redirect-chains); a URL that returns to itself is a [redirect loop](/seo-issues/redirect-loops).

_05_Redirect status codes at a glance

## 301 compared with the other redirect codes

Code

### [301](/errors/http/301)

Meaning

Permanent

Method on redirect

May change POST to GET

Typical use

Page or site moved for good

Code

### [308](/errors/http/308)

Meaning

Permanent

Method on redirect

Must not change

Typical use

Permanent move that keeps POST

Code

### [302](/errors/http/302)

Meaning

Temporary

Method on redirect

May change POST to GET

Typical use

Short detour, test, outage

Code

### [307](/errors/http/307)

Meaning

Temporary

Method on redirect

Must not change

Typical use

Temporary move that keeps POST

Code

### [303](/errors/http/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.

_06_Explained

## 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](/ai-crawlers/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](/seo-issues/temporary-redirects), [redirect chains](/seo-issues/redirect-chains) and the [301 redirect](/glossary/301-redirect) [glossary](/glossary/glossary-page) entry, plus Google's [redirects documentation](https://developers.google.com/search/docs/crawling-indexing/301-redirects).

Questions

## Asked a lot.

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

_01_ What 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.

_02_ What 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](/errors/http/308).

_03_ Does 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.

_04_ How 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. 01 [RFC 9110: HTTP Semantics, Redirection 3xx](https://www.rfc-editor.org/rfc/rfc9110#name-301-moved-permanently) rfc-editor.org · checked 2026-10-25
2. 02 [RFC 7538: The Hypertext Transfer Protocol Status Code 308 (Permanent Redirect)](https://www.rfc-editor.org/rfc/rfc7538) rfc-editor.org · checked 2026-10-25
3. 03 [MDN: 301 Moved Permanently](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/301) developer.mozilla.org · checked 2026-10-25
4. 04 [Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects) developers.google.com · checked 2026-10-25
5. 05 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25
6. 06 [nginx: ngx_http_rewrite_module, return](https://nginx.org/en/docs/http/ngx_http_rewrite_module.html) nginx.org · checked 2026-10-25
7. 07 [Apache HTTP Server 2.4: mod_alias, Redirect](https://httpd.apache.org/docs/2.4/mod/mod_alias.html) httpd.apache.org · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn HTTP 302 Found HTTP status codes](/errors/http/302) [Related Temporary redirects that should be permanent Redirects](/seo-issues/temporary-redirects) [Read next HTTP 308 Permanent Redirect HTTP status codes](/errors/http/308) [Do Run a free site audit Free, about two minutes](/site-audit)

More in HTTP status codes
[504 Gateway Timeout](/errors/http/504) [505 HTTP Version Not Supported](/errors/http/505) [506 Variant Also Negotiates](/errors/http/506) [507 Insufficient Storage](/errors/http/507) [508 Loop Detected](/errors/http/508) [510 Not Extended](/errors/http/510) [511 Network Authentication Required](/errors/http/511) [5xx errors](/errors/http/5xx-errors) [HTTP 200 OK](/errors/http/200) [HTTP 201 Created](/errors/http/201) [HTTP 204 No Content](/errors/http/204) [HTTP 206 Partial Content](/errors/http/206) [HTTP 301 Moved Permanently](/errors/http/301) [HTTP 302 Found](/errors/http/302) [HTTP 303 See Other](/errors/http/303) [HTTP 304 Not Modified](/errors/http/304) [HTTP 307 Temporary Redirect](/errors/http/307) [HTTP 308 Permanent Redirect](/errors/http/308) [HTTP 400 Bad Request](/errors/http/400) [HTTP 401 Unauthorized](/errors/http/401) [HTTP 405 Method Not Allowed](/errors/http/405) [HTTP 407 Proxy Authentication Required](/errors/http/407) [HTTP 408 Request Timeout](/errors/http/408) [HTTP 409 Conflict](/errors/http/409)

Terms on this page
[HTTPS](/glossary/https) [URL slug](/glossary/url-slug) [HTTP caching](/glossary/http-caching) [301 redirect](/glossary/301-redirect) [Glossary page](/glossary/glossary-page)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
