Cloudflare Flexible SSL plus an origin HTTPS redirect
In Flexible mode Cloudflare talks to the origin over HTTP. If the origin redirects HTTP to HTTPS, the request loops.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
ERR_TOO_MANY_REDIRECTS means the browser followed redirects in a loop and gave up. Visitors should clear cookies for the site. Owners should look for two rules that send a URL back and forth, most often an HTTP to HTTPS redirect combined with Cloudflare Flexible SSL.
Chrome Help recommends deleting cookies for this error, because a broken cookie can stop pages from opening.
If it loads, a cookie or an extension is involved. Disable extensions one at a time.
If it fails everywhere, the redirect loop is on the site and only the owner can fix it.
Send the owner the URL and what you did. A loop that appears after a site change points at a new rule.
In Flexible mode Cloudflare talks to the origin over HTTP. If the origin redirects HTTP to HTTPS, the request loops.
One rule sends example.com to www and another sends www back to the bare domain.
A plugin forces one URL form while .htaccess or nginx forces another.
A protected page redirects to login, and login redirects back because the session cookie is not accepted.
Edge HTTPS enforcement plus origin redirects, or HSTS with an origin that redirects HTTPS to HTTP.
Two redirect rules in a CDN, plugin or server config point at each other.
Cloudflare lists these causes in Too many redirects.
curl -sIL --max-redirs 10 https://example.com/page | grep -iE "^(HTTP|location)"
# a loop prints the same two Location values again and again, for example:
# HTTP/2 301 location: https://example.com/page
# HTTP/2 301 location: https://www.example.com/page
# HTTP/2 301 location: https://example.com/pageCompare the repeated URLs. The rule that creates each hop is the one to change.
| Cause | Fix |
|---|---|
| Flexible SSL and origin HTTPS redirect | Remove the origin redirect, or switch to Full or Full (strict) with a certificate on the origin |
| Always Use HTTPS or HSTS conflicts | Disable them if not needed, or enforce HTTPS in one place |
| Conflicting redirect rules | Review CDN rules, Page Rules, plugins and server config and keep one rule per direction |
| www versus non-www | Choose one canonical host and redirect the other to it in one hop |
| WordPress behind Cloudflare | Cloudflare recommends its WordPress plugin with Automatic HTTPS rewrites enabled |
It means Chrome tried to load a page and was redirected too many times, usually in a loop between two URLs. Chromium defines it as an attempt to load a URL that resulted in too many redirects.
Delete cookies for the site first, as Chrome Help advises. Then test in an Incognito window and try another browser. If it still fails, the loop is on the server, and the owner must fix the conflicting redirect rules.
The most common reason is Flexible SSL: Cloudflare connects to your origin over HTTP, and an origin that redirects HTTP to HTTPS sends that request back to Cloudflare, forever. Switch to Full or remove the origin redirect.
Googlebot generally follows up to 10 redirect hops. A loop never resolves, so the page cannot be crawled. Fix loops quickly, because the affected URLs cannot be indexed.
Yes. A mismatch between the WordPress and site URL settings, a plugin that forces HTTPS or www, or a server rule fighting a plugin can create a loop. Disable redirect plugins and check the URL settings first.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.