Fix the redirect Google gave up on

Redirect error in Search Console's Page indexing report means Googlebot followed redirects from the URL and gave up before it reached a page, so nothing was indexed. Google names four causes: a chain that was too long, a loop, a redirect URL that grew past the maximum length, or a bad or empty URL in the chain. The fix is in your redirect rules, and the goal is to send each old address straight to its final page in one hop.

What each redirect error means

  • The chain is too long

    Google's crawlers follow up to 10 redirect hops by default. Google abandons a URL that passes through more addresses than that before it reaches a page.

  • The redirects loop

    Two or more rules send the request back and forth, such as one that adds a trailing slash and another that removes it, so no page is ever found.

  • The URL grows too long

    Each redirect adds to the address, for example a rule that sends a path to itself with another segment on the end, until the URL passes the maximum length.

  • A redirect has a bad or empty target

    A redirect response sends an empty Location header or an address that isn't a valid URL, so there's nowhere to go next.

Google lists the four causes in the Page indexing report guide, and its HTTP status code guide sets the 10-hop default. RFC 9110 describes the redirect that points a URL at a longer version of itself.

Follow a URL the way Googlebot does

# Follow up to 10 redirects, Googlebot's default, and print where the URL ends up
curl -sS -o /dev/null -L --max-redirs 10 \
  -w '%{http_code} after %{num_redirects} redirects: %{url_effective}\n' \
  https://yoursite.com/old-page

Read what curl prints

  • A line such as 200 after 1 redirects: https://yoursite.com/new-page means the chain works now. If you fixed it after Google's last crawl, validate the fix. A final 4xx or 5xx code means the chain ends on an error page, so the destination needs fixing too.

  • Maximum (10) redirects followed means curl gave up where Google would have, so you have a loop or a chain that's too long. Run curl -sI on the URL and on each Location it returns to find the rule that sends the request back. A Location header that's empty or isn't a valid address is the broken hop. The curl manual explains each option.

  • A loop can span several servers that each see only part of it, so no single server catches it, MDN notes. A redirect in your CDN and another in your application can undo each other, so check what changed in each layer around the time the errors started.

How to fix a redirect error

  1. Find the rule behind each hopRedirects can come from your web server, your application, a CMS plugin, a CDN or a load balancer. Check every layer that answers the request, and start with the one you changed last.
  2. Compare your HTTPS, www and slash rulesRules that force HTTPS, add or remove www, or add or remove a trailing slash each work alone. Two of them that disagree can send a request back and forth until the client gives up.
  3. Point the old address at the final pageChange the first redirect so it goes straight to the page that answers 200, and remove the steps in between.
  4. Send a full, valid URL in LocationUse a complete address and encode spaces and other special characters. A relative Location is allowed, but it resolves against the requested URL, which can send a request somewhere you didn't expect.
  5. Keep HTML and server redirects in stepIf a page also has a meta refresh or JavaScript redirect, make it match the server redirect or remove it. Two redirects that drift apart can loop.
  6. Update links and validate the fixChange your internal links and sitemap entries to the final address, then click Validate fix on the issue in the Page indexing report.

Frequently asked questions

Is this the same as Chrome's too many redirects error?

Often. Chrome shows ERR_TOO_MANY_REDIRECTS when loading a URL leads to too many redirects, which is what a loop or an overlong chain does, and it reports a redirect to an invalid URL as a separate error. Both are in Chromium's error list.

What's the difference between a redirect error and page with redirect?

Page with redirect means the redirect worked: the URL sends Google to another page, so only the target can be indexed, which is expected for a page you moved. Redirect error means Google never reached a page at all, so it needs fixing. The Page indexing report guide describes both.

How long does a redirect error take to clear?

After you click Validate fix, Google rechecks the affected URLs, which usually takes up to about two weeks and sometimes longer. Google also updates the count when it recrawls a fixed URL on its own, even if you never start validation.