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.
QUICK FIX · $49 · THIS ERROR ONLY
Get this exact error fixed — $49 Quick FixFixed within scope, or we keep working until it is · Read-only access Not sure it's this error? $149 diagnosis
- 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.
One error, one root cause, fixed in your app. If it turns out bigger, we tell you before doing more, and your $49 is credited toward the fix, diagnosis or Launch Path if you book within 14 days. Fixing three? The 3-Error Pack is $119.
Bigger job: Getting the whole app live? Launch Path, $1,195 flat.
Built with Lovable, Bolt, Replit, Cursor or v0? See rescue by platform and the security checklist.