# 301 redirect

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

Canonical: https://scaplet.com/glossary/301-redirect

Glossary Glossary · Crawling

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2F301-redirect%20(%22301%20redirect%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%2Fglossary%2F301-redirect%20(%22301%20redirect%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%2Fglossary%2F301-redirect%20(%22301%20redirect%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%2Fglossary%2F301-redirect%20(%22301%20redirect%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 6 parts, 4 minutes.

1. [What a 301 redirect is 01](#what-a-301-redirect-is)
2. [How Google handles it 02](#how-google-handles-it)
3. [Tips most guides miss 03](#tips-most-guides-miss)
4. [Set up a 301 04](#set-up-a-301)
5. [Verify it 05](#verify-it)
6. [Common mistakes 06](#common-mistakes)

_01_Check 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
```

_02_At a glance

## How Google handles it

Google's redirect documentation says permanent redirects are a signal that "the redirect target should be canonical." Its crawler docs rate a 301 a "strong" signal for the target and a 302 or 307 a "weak" one, and say Google follows up to 10 hops by default. For a [site move](/glossary/site-migration), Google says it "will continue to occasionally show the old URLs in the results" for a while.

Code

### 301

Type

Permanent

Method on redirect

May change POST to GET

Google's signal

Strong

Code

### 308

Type

Permanent

Method on redirect

Method must stay the same

Google's signal

Strong (Google treats 308 as equivalent to 301)

Code

### 302

Type

Temporary

Method on redirect

May change POST to GET

Google's signal

Weak

Code

### 307

Type

Temporary

Method on redirect

Method must stay the same

Google's signal

Weak (Google treats 307 as equivalent to 302)

_03_Your 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](/glossary/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](/seo-issues/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](/glossary/canonical-url) signals are present.
- **Chains cost crawling.** Google says to avoid long [redirect chains](/seo-issues/redirect-chains) because they have a negative effect on crawling. The default limit is 10 hops, but specific products' crawlers may differ.

_04_Check 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](/glossary/rendering) of the content failed."

Apache

```
Redirect permanent "/old" "https://example.com/new"
```

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

_06_Checklist

## Common mistakes

1. 01 Using 302 for a permanent move. Google treats it as a weak signal for the target.
2. 02 Redirecting 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. 03 Leaving chains in place (A to B to C). Redirect A directly to C.
4. 04 Treating 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. 05 Relying 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. 01 [Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects) developers.google.com · checked 2026-10-24
2. 02 [How HTTP Status Codes Affect Google's Crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-24
3. 03 [301 Moved Permanently (MDN)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/301) developer.mozilla.org · checked 2026-10-24
4. 04 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-24
5. 05 [Crawl Budget Management](https://developers.google.com/crawling/docs/crawl-budget) developers.google.com · checked 2026-10-24

Questions

## Asked a lot.

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

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

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

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

## Keep learning

[All glossary](/glossary)

[Learn 302 redirect Crawling and indexing](/glossary/302-redirect) [Related Temporary redirects that should be permanent Redirects](/seo-issues/temporary-redirects) [Read next HTTP status codes Crawling and indexing](/glossary/http-status-codes) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[YouTube SEO](/glossary/youtube-seo) [Zero-click searches](/glossary/zero-click-searches)

More in Crawling and indexing
[URL fragment](/glossary/url-fragment) [URL Inspection tool](/glossary/url-inspection-tool) [URL parameters](/glossary/url-parameters) [URL structure](/glossary/url-structure) [User agent](/glossary/user-agent) [Video sitemap](/glossary/video-sitemap) [Web crawler](/glossary/web-crawler) [Web scraping](/glossary/web-scraping) [www vs non-www](/glossary/www-vs-non-www) [X-Frame-Options](/glossary/x-frame-options) [X-Robots-Tag](/glossary/x-robots-tag) [XML sitemap](/glossary/xml-sitemap) [301 redirect](/glossary/301-redirect) [302 redirect](/glossary/302-redirect) [410 Gone](/glossary/410-gone) [A record (DNS address record)](/glossary/a-record) [Bing Webmaster Tools](/glossary/bing-webmaster-tools) [Bot management](/glossary/bot-management) [Broken links](/glossary/broken-links) [cache: search operator](/glossary/cache-search-operator) [Canonical HTTP header](/glossary/canonical-http-header) [Canonical URL](/glossary/canonical-url) [Client-side rendering](/glossary/client-side-rendering) [Crawl budget](/glossary/crawl-budget)

Terms on this page
[Site migration](/glossary/site-migration) [Meta refresh](/glossary/meta-refresh) [Canonical URL](/glossary/canonical-url) [Rendering](/glossary/rendering)

Free · 2 minutes

## Know the term. _Now check your site._

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

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

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
