Help for owners
My website won't open and the browser says it redirected too many times
Short answer
When a website says too many redirects, two parts of your setup are sending visitors back and forth, so the browser gives up. With Cloudflare in front of the site, its documentation names the usual pairs: Flexible encryption with a server that forces HTTPS, Always Use HTTPS with a server that forces HTTP, or redirect rules that conflict.
Does this sound like your situation?
- Chrome shows ERR_TOO_MANY_REDIRECTS and the page never loads.
- The site broke right after I turned on HTTPS or a security certificate.
- It started after I connected the domain to Cloudflare.
- The home page loads but the login or checkout page loops.
- It works in one browser but not in another one I use every day.
Why does this happen?
Flexible mode meets a server that forces HTTPS
In Cloudflare's Flexible encryption mode, Cloudflare talks to your server over plain HTTP. Cloudflare's guide says loops occur if the server then redirects all HTTP requests to HTTPS. The fix it gives is to remove the server's HTTPS redirect or move the encryption mode to Full or higher.
Confirmed by developers.cloudflare.com
Full mode meets a server that forces HTTP
The opposite pairing also loops. With Full or Full (strict) mode, a server that redirects every HTTPS request back to HTTP creates the circle, and Cloudflare's fix is to remove that HTTP redirect from the server.
Confirmed by developers.cloudflare.com
Always Use HTTPS fights the server
Cloudflare's Always Use HTTPS setting sends visitors to HTTPS. If the server sends them back to HTTP, the loop starts, and Cloudflare advises removing the server redirect or turning that setting off.
Confirmed by developers.cloudflare.com
HSTS with encryption switched off
HSTS tells browsers to use HTTPS only. Cloudflare lists loops when HSTS is on but the domain's encryption mode is Off, and says to use Flexible or higher, or disable HSTS.
Confirmed by developers.cloudflare.com
Redirect rules that point at each other
Cloudflare also names conflicting URL redirects as a cause and asks you to review redirect rules and Page Rules so no two of them clash. The same applies to redirects set in a plugin, the host panel or the server config.
Confirmed by developers.cloudflare.com
What can I do about it today?
- Write down what changed lastA new certificate, a Cloudflare switch, a new SEO or security plugin, or a move from http to https are the usual triggers. The date of the change narrows the search.
- Test in a private windowOpen the site in a private window and on a phone using mobile data. If those work, your own browser may be holding old redirects or cookies, and clearing them for the site helps you see the real state.
- Check the Cloudflare encryption modeIf you use Cloudflare, open SSL/TLS in its dashboard and note the encryption mode and whether Always Use HTTPS is on. Send both to your developer.
- Change one setting at a timeAvoid flipping several switches at once. If you try a change, note what you changed and when, so it can be undone if the loop gets worse.
When should I bring someone in?
- Customers cannot reach the site and it is unclear which layer sends the redirect.
- The loop only hits logged-in users, checkout or the admin area.
- Several tools set redirects at once: a CDN, the host, a plugin and the server config.
How do I handle it?
- Follow the redirect chainI request the page from the command line and record every hop with its status code and target, which shows exactly where the circle closes.
- Pick one place for HTTPS redirectsHTTPS is enforced in one layer only, either at Cloudflare or on the server, and duplicates are removed from the rest.
- Set the right encryption modeWhere the server has a valid certificate, the proxy is set to the mode that encrypts and checks the whole path, which Cloudflare calls Full (strict).
- Check every important pathHome, login, checkout, admin and old URLs are tested in a clean browser after the fix to confirm each lands in one step.
The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.
What do owners ask about this?
How do I fix too many redirects on a Cloudflare site?
Match the encryption mode to your server. Cloudflare's guide says Flexible mode loops when the server forces HTTPS, so either remove that server redirect or switch to Full or higher.
Can clearing cookies fix ERR_TOO_MANY_REDIRECTS?
Only when the loop lives in your own browser. If the site also fails in a private window or on another device, the cause is in the site's setup.
Why does only my login page say too many redirects?
A rule that applies to that path, such as a forced HTTPS or login redirect in a plugin or server config, is clashing with another layer. Cloudflare lists conflicting redirect rules as one cause.
Is a redirect loop bad for my Google rankings?
A page that never loads cannot be read by anyone, search crawlers included, so fixing the loop quickly matters more than anything else on the site.
Sources
For your developer: the technical fixes
ERR_TOO_MANY_REDIRECTSThe browser gives up after Next.js middleware redirects the same page again and againERROR: localhost redirected you too many timesChrome says localhost redirected you too many times on a PHP siteredirect loop when opening the Argo CD hostArgo CD behind an nginx Ingress loops with too many redirects
Related help
- Will My Site Handle Launch Day Traffic?A load test sends simulated visitors to a copy of your site and watches where it fails first.
- My app has no backend and I need an API for itAn API is the part that lets your app, website or partners read and write shared data on a server.
- Error Establishing a Database Connection: First StepsError establishing a database connection means WordPress cannot reach the database that holds your pages, users and orders.
- Need an Admin Panel for My App: What to DecideAn admin panel is a protected web page where your staff manage users, orders and content without touching the database.