What Is Redirect Loop?

Flavio AmielWritten byFlavio Amiel Founder, Roborank
Updated July 15, 2026

A redirect loop is a misconfiguration in which redirects point back to a URL already in the sequence, so a request cycles endlessly and never reaches real content. Browsers abort with a “too many redirects” error, and Google Search Console reports the affected page as a redirect error and excludes it from indexing.

Key Takeaways

How a Redirect Loop Works

A redirect loop is a redirect chain that never ends. In a normal chain, each hop moves a request closer to a real page and the sequence eventually terminates at a 200 OK response. In a loop, one of the redirects points back to a URL that is already earlier in the sequence, so the request is sent in a circle: URL A redirects to B, and B redirects back to A, which redirects to B again. No hop ever returns actual content, so the cycle would run forever if nothing stopped it.

Clients do stop it. Browsers keep a running count of redirects for a request and, once the count grows unreasonable, abort with an error rather than loop indefinitely — Chrome shows ERR_TOO_MANY_REDIRECTS, and other browsers display equivalent “redirected you too many times” messages. The practical result is the same everywhere: the visitor sees an error page, not your content. Because a search crawler behaves the same way, a looping URL is completely unreachable. It cannot be crawled, so it cannot be indexed, so it cannot rank. This is an availability failure, not a ranking penalty — the page is simply gone as far as the web is concerned.

Google names the condition explicitly. In the Search Console Page indexing report, “Redirect error” is triggered by one of four problems, and a redirect loop is one of them. The other three — a redirect chain that was too long, a redirect URL that eventually exceeded the maximum URL length, and a bad or empty URL in the redirect chain — sit in the same bucket, all describing redirects that fail to deliver real content.

What Causes a Loop, and How to Break It

Loops are almost always born from redirect rules that each look correct alone but contradict each other when combined. The usual suspects:

The reason these slip through is that each rule is individually reasonable and often lives in a different config layer — server, CDN, and application — so the collision only appears in production where all three run together. The fix is diagnostic, not clever: request the URL with a tool that prints each hop’s status code and Location header, watch where the sequence turns back on itself, and remove or reorder the rule causing the reversal. After correcting the rules, clear any caches, since cached redirect responses can keep serving the loop even after the underlying configuration is fixed.

Example of a Redirect Loop

A textbook loop comes from two well-meaning canonicalization rules that disagree. Suppose the origin server is configured to force the bare domain, so it redirects any www request back to the apex:

  1. https://www.example.com/page — 301 to https://example.com/page

Meanwhile, a CDN sitting in front of the site is configured to force www, so it does the reverse:

  1. https://example.com/page — 301 back to https://www.example.com/page

Now trace a single request. It arrives at the www URL, the origin sends it to the apex, the CDN sends it back to www, the origin sends it to the apex again, and the cycle repeats. The browser counts the redirects, gives up, and prints ERR_TOO_MANY_REDIRECTS. Googlebot hits the same wall, and Search Console files the URL under “Redirect error” as a redirect loop, excluding it from indexing. Neither rule is wrong by itself — the site simply cannot enforce www and non-www at the same time. Pick one canonical host, make every layer agree on it, and the loop resolves into a clean single hop.

The thing people get wrong

A redirect loop is one of the few SEO problems that is genuinely all-or-nothing: the page returns zero content to every visitor and every crawler, no exceptions. The causes are almost always conflicting rules that each looked correct in isolation — an HTTPS rule and an HTTP rule that disagree, a CDN forcing www while the origin forces non-www, or a CMS canonical redirect fighting a server rewrite. Because each rule is fine on its own, the loop only appears where they collide, which is why it so often slips past local testing and only surfaces in production. When I hit one, I stop guessing and trace the actual response headers hop by hop with a request tool; the loop is always obvious the moment you can see the two rules pointing at each other.

Frequently Asked Questions

What causes a redirect loop?
Conflicting redirect rules that point back at each other — for example one rule forcing HTTPS and another forcing HTTP, or a CDN and an origin server disagreeing on www versus non-www. Each rule works alone, but together they send a request in an endless circle that never reaches a real page.
How does a redirect loop affect SEO?
Severely, because the page returns no content at all. A looping URL cannot be crawled, indexed, or ranked. Google Search Console reports it as a redirect error and excludes it from the index, so the page effectively disappears from search until the loop is fixed.
How do I fix ERR_TOO_MANY_REDIRECTS?
Trace the redirect path with a tool that shows each hop’s response headers, then find the two rules pointing back at each other and remove or reorder one. Common culprits are conflicting HTTP/HTTPS or www/non-www rules across your server, CDN, and CMS. Clear caches after correcting the rules.
Is a redirect loop the same as a redirect chain?
No. A redirect chain reaches a real page after several hops and merely wastes time. A redirect loop never reaches a page, because a redirect points back to a URL already in the sequence, cycling forever. A chain is inefficient but functional; a loop is completely broken.

The Bottom Line

A redirect loop is a redirect that eats its own tail — the URLs point back at one another so a request circles forever and no page is ever delivered. Browsers cut it off with a “too many redirects” error and Google reports it as a redirect error, dropping the page from its index. There is no partial version of this failure: fix the conflicting rules that feed the loop, or the page stays invisible to users and search alike.

Sources

  1. Page indexing report — Redirect errorGoogle Search Central
  2. How Google handles redirects for SearchGoogle Search Central
Roborank does this

Roborank crawls your site and flags redirect loops the moment they appear, so a conflicting rule doesn’t quietly pull a page out of Google’s index.

Catch redirect loops →

Rank & Cash — the weekly SEO breakdown

One practical teardown a week on ranking in search and getting cited by AI. No fluff.