ERR_TOO_MANY_REDIRECTS
- Cloudflare
- Vercel
- Netlify
- DNS
What it means
The browser was sent back and forth between addresses until it gave up. Two settings disagree about where the site lives, or a page keeps redirecting to itself.
Why it happens
- Cloudflare SSL is set to Flexible while the host forces HTTPS, so each side redirects to the other.
- One service redirects www to the bare domain while another redirects back.
- Sign-in middleware protects the login page itself, so it keeps redirecting there.
How to fix it
- With Cloudflare in front of Vercel or Netlify, set SSL/TLS to Full (strict).
- Choose one main address (www or bare) and redirect only in one place.
- Exclude the login and auth pages from sign-in checks.
- Run the domain checker to see the redirect chain.
Let your AI find the cause
Paste this into Claude Code, Cursor, Lovable or whichever AI built your app. It looks first and changes nothing until you have read the answer.
My site shows ERR_TOO_MANY_REDIRECTS. Without changing anything yet, list every redirect this project does (middleware, config files, auth) and every redirect setting I should check at my host and DNS provider.