How to fix ERR_TOO_MANY_REDIRECTS on your website
ERR_TOO_MANY_REDIRECTS means two or more addresses on your site keep sending the browser to each other, so the page never loads. It is usually fixed by finding the one setting or rule that disagrees with another, most often an HTTP to HTTPS or www rule, and removing the conflict.
ERR_TOO_MANY_REDIRECTS means your browser asked for a page, was sent to a different address, was then sent on again, and kept going until it gave up. The addresses point at each other in a circle, so nothing ever loads. The good news is that a loop is almost always caused by one conflicting rule, and you can find it with a few free checks.
What visitors see
Chrome and Edge show a page saying the site redirected you too many times, with ERR_TOO_MANY_REDIRECTS underneath. Firefox says the page isn't redirecting properly. Safari says too many redirects occurred. Browsers give up after a fixed number of hops (around 20 in Chrome).
The cause is nearly always on the server or in a setting, not on the visitor's computer. The exception is stale cookies, which can cause the error for one person only. That is why the first check below is worth doing.
Why it matters
- Visitors see an error instead of your page, so they leave. A looping page cannot sell, take a booking or be read.
- Search engines cannot reach a page that loops, so affected pages can drop out of results if the problem lasts.
- A loop on the login page can lock you out of your own admin area.
- Loops often appear right after an SSL or domain change, so they can also point to a security setup that was never finished.
How to check if your site has it
- Open the page in a private or incognito window. If it works there but not in your normal window, clear cookies for your site and try again. If that fixes it, the cause was a stale cookie, not your site.
- Try another device or your phone on mobile data, to rule out your own browser or network.
- Test all four versions of your address:
http://example.com,https://example.com,http://www.example.comandhttps://www.example.com. Loops often affect only one of them. - If you are comfortable with a terminal, run this and look at the repeating
Locationlines:
curl -sIL --max-redirs 10 https://example.com | grep -i -E "^(HTTP|location)"
- In Chrome, open Developer Tools, go to the Network tab, tick Preserve log and reload. You will see the same 301 or 302 responses repeating.
The curl output tells you the story. If address A sends you to B and B sends you straight back to A, you have found the loop. The two addresses usually differ only by http and https, or by www.
You can also catch loops across the whole site, not just the page you happened to test. Week 6 of SiteMonday is the broken links and 404 sweep, and pages that fail to load because of a redirect loop are the kind of problem it is there to surface.
The common causes
| Cause | Typical sign | Usual fix |
|---|---|---|
| HTTPS forced twice | Loop only on http or only after enabling SSL | Keep one redirect rule, remove the duplicate |
| Cloudflare SSL mode set to Flexible | Loop starts after adding Cloudflare, server also forces HTTPS | Set SSL/TLS mode to Full or Full (strict) |
| www and non-www disagree | Loop on one version only | Pick one preferred version everywhere |
| WordPress address mismatch | Loop on every page, admin included | Make Site Address and WordPress Address match |
| Proxy or load balancer hides HTTPS | Server thinks every request is plain HTTP | Pass the forwarded protocol header to the app |
| Plugin, cache or leftover rule | Started after an update or install | Disable and retest |
How to fix it in general
Find every place that can redirect and make sure they agree. Redirects can live in four places: your hosting control panel, your web server config, your CMS or app settings, and a service in front of your site such as Cloudflare. A loop happens when two of them want different things, for example the host forces https while a plugin or proxy keeps asking for http.
Change one thing at a time, then retest in a private window. Browsers cache permanent (301) redirects aggressively, so a fix can look like it failed when your browser is simply remembering the old answer.
Fixing it on common platforms
WordPress. The classic cause is the Site Address and WordPress Address not matching, found under Settings, General. If you cannot log in, you can set them in wp-config.php with WP_HOME and WP_SITEURL. Next, look at .htaccess in the site root for duplicate HTTPS or www rules. Then rename the plugins folder temporarily to rule out a redirect or SSL plugin. Our WordPress guide goes through this step by step.
Cloudflare. If your server already redirects to HTTPS and Cloudflare's SSL/TLS mode is Flexible, Cloudflare talks to your server over plain HTTP, your server redirects, and the loop begins. Switch the mode to Full, or Full (strict) if your server has a valid certificate. Also check any Redirect Rules or Page Rules for overlap. See the Cloudflare guide.
Nginx and Apache. Search your config for every return 301, rewrite or RewriteRule that touches HTTPS or www. Behind a proxy or load balancer, the app must be told the original request was secure, usually through the X-Forwarded-Proto header. Without it, the app redirects to HTTPS forever.
Shopify. Check your primary domain under Settings, Domains, and look at your URL redirects list (the menu location varies by version) for a redirect that points to itself or to a page that redirects back.
WooCommerce. Treat it like WordPress, then check cart, checkout and account page settings and any caching plugin that excludes those pages. Forced HTTPS on checkout alone is a common source of loops.
Next.js and similar frameworks. Check redirects in your config, middleware that redirects, and trailing slash settings. A rule that adds a slash while your host removes it will loop.
If the loop appeared right after an SSL change, also read our guide to the SSL not secure warning, because the certificate and the redirect rules often need fixing together.
How to confirm the fix worked
- Open all four address versions in a private window. Each should end on one final address with no error.
- Re-run the curl command. You want one redirect at most (for example http to https), then a
200response. - Test your login page, cart and checkout, since these are often handled by separate rules.
- Clear your cache, and any CDN or plugin cache, then test again.
How to stop it coming back
- Decide on one canonical address (https, with or without www) and write it down. Every rule should send visitors there in a single step.
- Keep HTTPS redirects in one place only: the host, the server, or the CMS, not all three.
- After changing SSL, domain, plugins or Cloudflare settings, test the four address versions right away.
- Keep a backup before editing
.htaccess,wp-config.phpor server config, so a bad edit can be undone in a minute. - Review redirects after a redesign or migration, and remove old rules you no longer need.
SiteMonday finds and explains problems like this one, but fixing them is up to you or your developer.
Step by step for your platform
- Too many redirects (redirect loop) on WordPress
- Too many redirects (redirect loop) on Cloudflare
- Too many redirects (redirect loop) on Nginx
- Too many redirects (redirect loop) on Apache
- Too many redirects (redirect loop) on Shopify
- Too many redirects (redirect loop) on WooCommerce
- Too many redirects (redirect loop) on Next.js
Questions
What does ERR_TOO_MANY_REDIRECTS mean?
It means the browser was sent from address to address so many times that it stopped trying. Two or more rules on your site are pointing at each other in a circle.
Can I fix it by clearing my cookies?
Sometimes, if the loop is caused by a stale cookie and only affects your browser. If the page also fails in a private window or on another device, the cause is on the site itself.
Why did it start after I added Cloudflare?
Usually because the SSL/TLS mode is Flexible while your server also forces HTTPS. Changing the mode to Full or Full (strict) normally ends the loop.
Does a redirect loop hurt my search rankings?
Search engines cannot load a page that loops, so those pages may drop out of results if the problem lasts. Fixing it promptly limits the damage.
I cannot log in to WordPress because of the loop. What now?
Set `WP_HOME` and `WP_SITEURL` in `wp-config.php` to your correct address, then check `.htaccess` and temporarily disable plugins. Take a backup before editing any file.
How many redirects is too many?
Browsers stop at a fixed limit, around 20 in Chrome. In practice, aim for a single redirect step at most, such as http straight to the final https address.