Chrome: This page isn’t working — example.com redirected you too many times. ERR_TOO_MANY_REDIRECTS
The page keeps redirecting to itself or in a loop, so the browser gives up after about 20 redirects.
redirected you too many timesThe page isn't redirecting properly Meaning
A redirect loop is created by two rules that undo each other: HTTP→HTTPS plus HTTPS→HTTP behind a proxy, www/non-www pairs, a login redirect that is not recognised because the cookie is blocked, or a CMS site URL that differs from the real one. Visitors can clear the site's cookies; owners must fix the redirect rules.
Common causes
- HTTPS redirect loop behind a proxy/CDN (server thinks the request is HTTP)
- Conflicting www ⇄ non-www or trailing-slash rules
- Login or consent redirect that never sees its cookie (blocked/expired cookie)
- WordPress siteurl/home mismatch or a redirect plugin
- Cloudflare SSL mode "Flexible" with an HTTPS-only origin
⚡ Quick fix
- Visitors: clear cookies for that site and try again
- Owners: trace the chain with
curl -ILand remove the rule that points back - Make the app trust
X-Forwarded-Proto: httpsfrom your proxy
Detailed fix by platform
Linux
curl -sIL --max-redirs 10 https://example.com | grep -i -E "^(HTTP|location)"shows each hop and where it loops
Nginx
- Behind a TLS-terminating proxy pass the scheme:
proxy_set_header X-Forwarded-Proto $scheme;and do not redirect when it is alreadyhttps
Apache
- Check
.htaccessfor rules likeRewriteCond %{HTTPS} offcombined with a proxy; use%{HTTP:X-Forwarded-Proto}instead
Code examples
Find the loop
curl -sIL --max-redirs 8 http://example.com/ | grep -i -E '^(HTTP|location)'
# HTTP/1.1 301 Location: https://example.com/
# HTTP/2 301 Location: http://example.com/ <- sends the browser back to HTTP: loopHow to diagnose
- Chain — What do the Location headers show?
- Cookies — Does clearing site cookies help?
- Proxy — HTTPS terminated before the app?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Browser
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026