Automated technical SEO checks that catch indexing blocks and deploy regressions — seotto.com
"Redirect error" in Search Console is easy to shrug off as "Google being fussy about a 301". It is usually more specific than that: the crawler followed a chain and never landed on a URL it was willing to treat as the document. A loop, a chain that never ends in a 200 (or a 304), a hop that times out, a hop that goes to HTTP and dies, or a redirect to a host that does not resolve — those all show up as the same row in the report.
The Page Indexing report will name some of the URLs. It will not draw the chain. You have to do that yourself, from a machine that is not already sitting inside a corporate proxy that "fixes" HTTP for you.
Reconstruct the chain, hop by hop
Do not start with curl -L. -L will hide the intermediate statuses and may stop at a different hop than you think.
# one hop: status, Location, and whether it went to HTTP url=https://example.com/old-path curl -sS -D- -o /dev/null --max-redirs 0 "$url" Then follow Location yourself, including the scheme and the host, until you get a non-redirect or you have seen a URL twice. A short script is less error-prone than doing it in your head:
import sys import requests url = sys.argv[1] seen = [] for i in range(15): if url in seen: print(f"LOOP at {url}") break seen.append(url) try: r = requests.get( url, allow_redirects=False, timeout=20, headers={"User-Agent": "redirect-chain-check/1.0"}, ) except requests.RequestException as e: print(f"ERR\t{type(e).__name__}\t{url}") break loc = r.headers.get("Location", "") print(f"{r.status_code}\t{url}\t{loc}") if r.status_code not in (301, 302, 303, 307, 308) or not loc: break url = requests.compat.urljoin(url, loc) What you want at the end is a single, stable HTTPS URL that returns 200, with a canonical that agrees with it. Anything else is a candidate for the error.
Also run the same chain for the usual twins of the URL: http://, https://www., https:// without www, with and without a trailing slash, and (if you have them) a locale prefix or a trailing .html. Search Console often lists one variant; the loop may only appear when the crawler arrives on another.
The chains that typically produce the report
A loop. /foo → /foo/ → /foo, or HTTP → HTTPS → HTTP, or www → bare → www. Often two layers each think they are "the one that standardises the URL": the CDN appends a slash, the origin strips it; the load balancer forces HTTPS, the origin's absolute_url is still http:// and a framework redirects back. The script above will print LOOP.
A chain that is too long, or that never lands. Four or five hops (HTTP → HTTPS → www → trailing slash → locale → the real page) can work in a browser and still be a bad idea. If one hop 404s, 5xxs, times out, or points at a host with a bad certificate, the whole thing is a redirect error, not a 404 in the report, because Google never got a document.
A redirect to HTTP that cannot complete. HSTS on the first hop, a Location: http://... on a later hop, mixed with a firewall or a CDN that no longer serves port 80. Browsers may upgrade or refuse; the crawler reports a redirect error.
A redirect to a URL that is excluded or broken. 301 to a page that is noindex, behind a login, at a third-party domain that 403s bots, or to / when you meant a specific article. Sometimes Google will just treat that as a soft issue; sometimes, if the hop itself fails, it is "Redirect error".
A meta refresh or JavaScript-only "redirect". Search Console can also be fussy here. If you need a redirect for SEO, use an HTTP 301 or 308 from the first response, not a 200 with a tag.
# compare CDN / origin if they can disagree curl -sS -D- -o /dev/null --max-redirs 0 https://example.com/old-path curl -sS -D- -o /dev/null --max-redirs 0 \ --resolve example.com:443:ORIGIN_IP https://example.com/old-path If the two disagree, the crawler sees the CDN. Fix the edge, or you will "fix" the origin all afternoon.
Fix the hop, then shorten the chain
Pick one canonical shape (scheme, host, slash, locale) and make every other shape a single 301 or 308 to it. Do not bounce through two or three intermediate standards. The HTTPS-on-bare-domain URL, if that is the one you want, should be reachable from http://www.example.com/foo/ in one hop if you can, two at most (some teams need HTTP→HTTPS and then www→bare; that is already the budget).
# bad: four hops http://www.example.com/foo -> https://www.example.com/foo -> https://www.example.com/foo/ -> https://example.com/foo/ -> https://example.com/en/foo/ # better: one hop to the canonical http://www.example.com/foo -> https://example.com/en/foo/ Then confirm the landing URL:
- Status 200 (or 304 on a subsequent request).
- No further
Location. - A canonical tag (and, if you use them, a sitemap entry) that matches this URL exactly — same host, scheme, slash.
- A certificate that is valid for that host.
Do not "fix" a redirect error by deleting a HTTP→HTTPS or an old-path 301 that real users still need. Replace a looping or indirect redirect with a direct one. After you deploy, use URL Inspection on a listed URL, request a recrawl, and give it a few days. The report is not a live tail.
A chain that looks fine in a browser can still be a loop or a dead hop for a crawler, especially when HTTP, www and a trailing slash all try to correct each other. seotto.com checks crawler-facing redirects and canonicals after you deploy, so a new hop that never lands shows up as a failed check, not only as a delayed row in Search Console.
A couple of traps
If you recently changed CDN, host, or "always use HTTPS", look there first. That is the change that most often introduces a second, conflicting redirect. And if only some URLs in a directory error, compare headers on a good URL and a bad one: a trailing-slash rule that does not apply to files, or a locale detector that 302s on Accept-Language, will not show up on the homepage.
robots.txt cannot fix a redirect error. Neither can a sitemap that already lists the canonical. The first request to the listed URL has to land.
Related reading
- How to fix 'Excluded by noindex tag' in Search Console when you're sure you never added noindex
- How to fix 'Blocked due to access forbidden (403)' in Google Search Console (it's usually your WAF or bot rules)
- Moving a blog from a subdomain to a directory (blog.example.com to example.com/blog)? A 12-point SEO checklist
- Should you include PDFs, images and videos in your XML sitemap, or only HTML pages? Let's argue about it
When you last saw "Redirect error" in Search Console, was it a loop, a four-hop chain, or a single Location that pointed at a host that no longer existed?
