301 redirect: how to set one up, and when it's a real problem

A 301 redirect is how your server, the computer that hosts your site, says a page has moved for good: HTTP status code 301, “Moved Permanently”. Google calls it a permanent redirect and treats it as a strong signal that the new address is the one that counts.
Then comes the question that brings most people here: Search Console says “Page with redirect” or “Redirect error”, and nobody tells you which of the two is normal. The first is an expected exclusion. The second is an error, and Google names its four causes.
The eight discussions collected on this problem show the same reflex: delete the redirect, click “Validate fix”, request indexing again. None of the three helps, and the first can bring two competing versions of the same site back online.
What is a 301 redirect, and what does Google do with it?
A 301 redirect tells Google the page has moved for good. Google's page on HTTP status codes, the numbers servers and browsers exchange for every page, says Google follows the redirect and uses it as a strong signal that the redirect target, the new address, should be processed.
An HTTP 301 is not an error code: the 3xx family, every code that starts with a 3, announces a move, not a breakdown. In the same family, a 302 is temporary, and a 308, permanent, is described by Google as equivalent to a 301.
Nothing changes for your visitor, who lands on the new page. For Google, the target becomes the canonical version shown in search results. Its redirects page adds that Google will very likely keep showing the old addresses occasionally, even once the new ones are indexed, and that this is normal.
301 vs 302 vs 307 vs 308: which one do you need?
Use a 301 permanent redirect when the move is final, and a 302 when you will revert. Google's page on redirects puts it in one line: use permanent redirects only when you're sure the redirect won't be reverted.
What changes is the signal: a permanent redirect makes the target the canonical version shown in results, a temporary one keeps the source page.
A canonical tag (a line of code inside the page, invisible to visitors, telling Google which version to prefer) is not a redirect. Google's canonicalization page states that indicating a canonical preference is a hint, not a rule. A redirect imposes, a canonical tag suggests.
| Code or method | Nature | What Google does with it | When to use it |
|---|---|---|---|
| 301 Moved Permanently | Permanent redirect | Strong signal: the target becomes the canonical version and shows in search results. | A final address change: a redesign, two pages merged, a domain variant. |
| 302 Found | Temporary redirect | Weak signal: the source page keeps showing in search results. | A detour you will remove later. |
| 307 Temporary Redirect | Temporary redirect | Google describes it as equivalent to a 302. | Same use as a 302, keeping the method of a submitted form. |
| 308 Permanent Redirect | Permanent redirect | Google describes it as equivalent to a 301. | Same use as a 301; the difference only matters for forms. |
| A canonical tag (rel=canonical) | Not a redirect | A hint, not a rule: Google can keep another version. | When both addresses must stay reachable for visitors. |
How do you set up a 301 redirect in WordPress, Shopify or .htaccess?
A 301 redirect is set server-side: in your platform, with your host, the company you pay to keep your site running, or through a redirects plugin. Google's page on redirects orders the methods by how likely Google is to interpret them correctly, and the server-side redirect comes first.
Behind it comes the meta refresh tag, then the JavaScript redirect, which Google keeps for when neither is possible.
Two redirects are worth setting once and for all: http to https (the secure version, the one with the lock icon in the browser), and www to non www, or the other way round. Google expresses no preference between www and non www: what matters is that one of the two answers and the other points to it. For the protocol, Google prefers https as the canonical version, unless there's a certificate problem.
| Platform or server | Where to set it | What the vendor documents |
|---|---|---|
| WordPress | In a redirects plugin, or in the .htaccess file (a settings file at the root of the site) if the site runs on Apache, the most common server software. | The WordPress documentation covers changing the site address during a migration. |
| Shopify | In the store admin, as a URL redirect. | Shopify documents a maximum of 100,000 redirects, 20 million on the Plus plan, working immediately. |
| Squarespace | In the URL mappings field. | Squarespace documents a 400 KB limit, around 2,500 lines, and redirects that only work once the source page is deleted or disabled. |
| Wix | In the site's SEO settings. | Wix documents a maximum of 5,000 redirects per site, and 301s only on custom domains. |
| Shared hosting | In the redirect tool of your control panel, when your host provides one. | For servers Google does not document, its redirects page points you to your host. |
| .htaccess file | One rule per old address, at the root of an Apache site; this needs server access your developer usually has, and you may not. | Google gives htaccess redirect examples for Apache, NGINX and PHP on its redirects page. |
Why does Search Console say “Page with redirect”, and is it a problem?
“Page with redirect” is not an error. The Page indexing report help files it under pages that are not indexed and defines it as follows: “This is a non-canonical URL that redirects to another page. As such, this URL will not be indexed.” No action is prescribed.
Your domain variants normally land on that list. Google treats each address separately: http and https, with and without www, with and without a trailing slash. The Google Search Central post “To slash or not to slash”, published on 21 April 2010 recommends a 301 redirect from the duplicate to the preferred version.
The help adds that the target URL “might or might not be indexed, depending on what Google thinks about that target URL”: the redirecting URL does not need to be indexed, its destination does. The other not-indexed statuses are read one at a time, like “Crawled, currently not indexed”.

“Redirect error”: which of the four causes is yours?
“Redirect error” has four causes, named by Google in the Page indexing report help: “A redirect chain that was too long”, “A redirect loop”, “A redirect URL that eventually exceeded the max URL length”, “A bad or empty URL in the redirect chain”.
To tell them apart, Google names Lighthouse, free in the Chrome browser: its multiple-redirects audit fails a page as soon as it has two redirects or more. Google's page on HTTP status codes gives the limit of 10 hops its crawlers follow; its site move guide advises redirecting to the final destination directly, otherwise no more than 3 and fewer than 5.
A redirect loop is the one case your visitors report before Search Console does. When two addresses send visitors to each other, the browser stops and says it is redirecting too many times. One of the two rules has to go.
The Visibility Audit reviews your redirects, your domain variants and the statuses in your page indexing report, with a ranked action plan, for $240.
- 1Check the property you followSearch Console's header tells you: a name starting with http:// or https:// is a URL-prefix property; your domain alone, a domain property.
- 2Read the exact status“Page with redirect” is an expected exclusion; “Redirect error” is the one to fix.
- 3Open URL inspectionIt shows the canonical URL Google selected, but Google Inspection Tools don't follow redirects.
- 4Count the hopsRight-click, Inspect (or F12), Network tab, Preserve log ticked: the Status column shows the code of every hop.
- 5Fix, then waitOne hop to the final destination, then let the validation cycle finish before clicking again.
| Official cause | What is happening | How to check | Fix |
|---|---|---|---|
| A redirect chain that was too long | The starting address goes through several hops before arriving. | Browser Network tab, or a 301 redirect checker online. | Redirect each old address straight to the final destination. |
| A redirect loop | Two addresses send visitors to each other and the browser stops, saying it is redirecting too many times. | The browser error message is enough to spot the page. | Remove one of the two rules: only one version can be the destination. |
| A bad or empty URL in the redirect chain | A rule points at a mistyped or missing address. | Open the destination written in the rule by hand. | Fix the destination, or return a 404 code if the page is gone. |
| A redirect URL that eventually exceeded the max URL length | Parameters pile onto the address at every hop. | Compare the address you typed with the final one in the bar. | Redirect to a clean address. Google publishes no maximum URL length. |
Why did my page disappear after I set up a 301?
Four documented causes, to check in this order: a bulk redirect to the home page, a 302 set instead of a 301, a redirect chain, and a Search Console property that does not match your site.
The costliest is the first. Google asks you not to redirect many old URLs to one irrelevant single URL destination, such as the home page of the new site, and warns that this might be treated as a soft 404 error: a page that shows a friendly “not found” message without returning the 404 code.
A 302 set instead of a 301 gives another symptom: Google keeps the old page in its results and does not treat the new one as canonical. A redirect chain gives a third.
The fourth cause is rarely mentioned: the property you are looking at. A URL-prefix property contains only addresses that start with that prefix, protocol included, and excludes subdomains, www among them. Follow a property on http or on www while your site lives on https without www, and the report fills with redirects while nothing is wrong.
Then there is the underlying fear of losing link value. Google writes, on its site move with URL changes page: “301 and other permanent redirects don't cause a loss in PageRank”, PageRank being the value links from other sites pass to your pages. The same page adds that you may experience ranking fluctuations while Google recrawls and reindexes your site: the two sentences go together. No loss percentage is published, and the figures that circulate cannot be traced to any verified Google statement. If the drop started with a rebuild, the causes are sorted in our article on a traffic drop after a redesign.
How long until Google takes the fix into account?
Allow about two weeks for a fix to be validated, “but in some cases can take much longer”, says the Search Console help. The two other official timings measure something else: a 180-day signal from the Change of Address tool, and at least one year of keeping your redirects live.
What speeds nothing up: clicking “Validate fix” again before the cycle ends, which the help advises against, and asking for indexing day after day. Validation does not crawl faster, it confirms. It fails as soon as a threshold of pages still carries the problem: one forgotten address can fail the batch, and “See details” names it.
For a change of domain name, the Change of Address tool adds a signal for 180 days, and Google asks you to submit it for every verified variant of the old domain. It is of no use for http to https, www to non www, or moving pages inside the same domain.
Our guide on redesigning without losing your search traffic gives the outline of a redirect plan: a mapping address by address, a single hop, internal links and the sitemap, the list of your pages sent to Google, updated. The Visible Website applies it, redirects included, for $1,190.
Three official timings compared in days: validating a fix, the Change of Address signal, and keeping redirects live.
FAQ
Are too many 301 redirects bad?
Many 301 redirects are fine; long chains are not. Google's crawlers follow up to 10 redirect hops, and Google advises redirecting straight to the final destination, keeping a chain to no more than 3 and fewer than 5. Lighthouse fails a page at two redirects: each extra hop adds a network trip that can delay loading by hundreds of milliseconds.
Does a 301 redirect lose SEO value?
No for link value, yes for a few unstable weeks. Google writes that permanent redirects don't cause a loss in PageRank, the value links from other sites pass to your pages. The same page warns that you may see ranking fluctuations while Google recrawls and reindexes your site, and that for medium-sized sites the new URLs can take a few weeks or more to show.
Is it possible to 301 redirect multiple URLs to a single URL?
It is possible, and Google asks you not to do it in bulk towards an irrelevant destination such as the home page of the new site: this might be treated as a soft 404 error. Redirect each page to its closest equivalent; where there is none, let a real 404 code answer instead.
How long should I keep a 301 redirect in place?
As long as possible, generally at least one year: that is Google's recommendation, the time it needs to transfer every signal to the new URLs, including links from other sites. The 180 days of the Change of Address tool measure how long the tool sends its signal, not how long your redirects should live.
How do I check a redirect is really a 301?
Right-click and choose Inspect (or press F12) to open your browser's Network tab, tick “Preserve log”, then load the old address: the Status column shows the code of each hop, 301, 302 or 200. A 301 redirect checker does the same from outside.
Order a Visibility Audit See pricing See a sample audit
Sources
- Redirects and Google SearchGoogle · developers.google.com
- Site moves with URL changesGoogle · developers.google.com
- How HTTP status codes affect Google's crawlersGoogle · developers.google.com
- CanonicalizationGoogle · developers.google.com
- Consolidate duplicate URLs and choose a canonicalGoogle · developers.google.com
- Page indexing report helpGoogle · support.google.com
- Add a website property: domain or URL prefixGoogle · support.google.com
- Change of Address tool helpGoogle · support.google.com
- URL Inspection tool helpGoogle · support.google.com
- “To slash or not to slash” (21 April 2010)Google Search Central · developers.google.com
- Avoid multiple page redirectsLighthouse · developer.chrome.com
- Network panel referenceChrome DevTools · developer.chrome.com
- 301 Moved PermanentlyMDN · developer.mozilla.org
- Migrating a site and changing its addressWordPress · developer.wordpress.org
- URL redirectsShopify · help.shopify.com
- Setting up a 301 redirect for a page on your siteWix · support.wix.com
- URL mappingsSquarespace · support.squarespace.com