ERR_TOO_MANY_REDIRECTS after adding Cloudflare
Visitors get stuck in a redirect loop, most commonly because Cloudflare's SSL/TLS mode is Flexible while the origin redirects HTTP to HTTPS. Set the encryption mode to Full (or Full strict) with a valid origin certificate, or remove the conflicting redirect.
Cause: SSL/TLS encryption mode conflicts with origin redirects, or redirect rules conflict.
How to fix it
- Check SSL/TLS > Overview encryption mode.
- If Flexible and the origin forces HTTPS, switch to Full or Full (strict).
- Review Always Use HTTPS, HSTS and redirect rules for conflicts.
- Clear cookies/cache and test in a private window.
Example
Illustrative example, not from a customer project.
SSL/TLS encryption mode
- Flexible
+ Full (strict)
FAQ
Why did it start after moving DNS to Cloudflare?
Flexible mode talks to your origin over HTTP; if the origin redirects to HTTPS, it loops.
Firefox shows a different message.
Cloudflare's docs mention 'The page isn't redirecting properly' as the equivalent.
Get a $149 diagnosis See pricing Launching soon? The Launch Path gets you ready for $1,195 flat.
- Fixed, or we keep working free until it is (within the written scope).
- A human reviews every fix before it ships.
- read-only access; fixes arrive as pull requests you merge
- Your $149 diagnosis is credited in full toward any paid job.