How to Fix ERR_TOO_MANY_REDIRECTS
Read the redirect chain until a URL repeats. The URLs and status codes show whether to check HTTPS settings, hostname rules, or a login session.
ERR_TOO_MANY_REDIRECTS means your browser followed too many redirects without reaching the page. A common pattern is two URLs sending the browser back and forth. Capture the chain first so you can see which host, scheme, or path changes at each step.
If you only visit the site, try the same URL in a fresh browser profile or private window. A loop confined to one session is a useful clue for the site owner. If you manage the site, compare the clean request with the failing session before clearing its cookies.
1. Find the first repeated URL
Open the browser's Network panel, enable Preserve log, and load the original URL. For each document request, record the request URL, status, and Location response header. That header is the next destination for redirects such as 301, 302, 307, and 308. Chrome DevTools network logging.
For a public URL, you can follow up to eight redirects with a regular GET request from a terminal. The command prints response headers and discards the response body.
curl -sS --location --max-redirs 8 --max-time 15 \
--dump-header - --output /dev/null https://example.com/Read the Location values in order. A browser trace is useful when reproducing the failure requires a login or cookies from an existing session. Share the URLs and status codes needed to show the loop, omitting session tokens and cookie values. curl redirect limit.
2. Match the chain to the rule that caused it
| Pattern in the trace | Where to investigate |
|---|---|
http:// and https:// alternate | Check how the CDN or reverse proxy connects to the origin and how the app determines the original scheme. |
www and the apex hostname alternate | Compare canonical hostname rules at the CDN, reverse proxy, and web app. Pick one preferred host. |
/login redirects to the app and back | Inspect whether the session cookie is set and sent on the next request. Check the cookie's scope and the app's sign-in URL. |
| A path gains and loses a trailing slash | Check path normalization in both the proxy and the app's routing rules. |
Cloudflare's Flexible mode uses HTTP to reach the origin. If that origin redirects its HTTP requests to HTTPS, a visitor can repeatedly land back at the same HTTPS URL. For an origin configured with HTTPS and a valid origin certificate, review whether Full (strict) is appropriate. Cloudflare redirect-loop troubleshooting.
Behind a reverse proxy, confirm the app learns the original scheme from its trusted proxy configuration. A proxy can terminate HTTPS while using HTTP to the upstream, and an app that sees only the upstream scheme may issue the HTTPS redirect again.
3. Verify the chain reaches the intended page
Test every entry URL that previously looped, including the HTTP and HTTPS addresses and any alternate hostname. For a login loop, repeat the flow with a fresh session and an existing session. Confirm the redirects lead to one final URL and that the page returns the expected status.
HTTP(S) Check shows the redirect chain when the request completes. If a loop exceeds the client's redirect limit, you may see a request error. Use the browser or curl trace to capture the repeated hops, then compare the app report after the fix.
Check the corrected redirect chain
Replace the sample URL with the one that was looping. Read the redirect chain, final URL, and status code.
Get NetDebug ToolkitFrequently asked questions
Does clearing cookies fix ERR_TOO_MANY_REDIRECTS?
It can clear a session-specific loop. If the same URL loops in a fresh session, capture the redirects and check the site and proxy rules.
Can Cloudflare cause a redirect loop?
Yes. A mismatch between Cloudflare's SSL/TLS mode and the origin's scheme redirects can repeat the same request. Compare what the visitor requests with how Cloudflare contacts the origin.
Can ERR_TOO_MANY_REDIRECTS happen without a repeated URL?
Yes. A chain of distinct URLs can exceed the browser's redirect limit. Follow the Location headers to see whether the chain repeats or simply keeps growing.
NetDebug Toolkit