Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4862 pages

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.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

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?

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

What can I do about it today?

  1. 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.
  2. 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.
  3. 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.
  4. 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?

  1. 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.
  2. 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.
  3. 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).
  4. 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

Related help

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.