Blog · 7 min read

Fix ERR_TOO_MANY_REDIRECTS on any website

Published

Fix ERR_TOO_MANY_REDIRECTS on any website

"This page isn't working. example.com redirected you too many times." That message, shown in Chrome as ERR_TOO_MANY_REDIRECTS, means a redirect loop: page A sends the browser to page B, and page B sends it straight back. The browser gives up after about 20 hops. Visitors cannot reach the page and search engines cannot crawl it.

The cause is almost always a conflict between two redirect rules. This guide shows how to find the loop and fix it, whatever your site runs on.

What a redirect loop looks like

Step 1: trace the redirect path

Do not guess. Paste the address into the redirect checker. It follows every hop and shows the status code of each one (301, 302, 307 or 308). A loop is easy to spot: the same two or three URLs repeat. Check the http and https versions, and the www and non-www versions, separately, because the loop often exists for only one of them.

The most common causes

1. HTTPS and HTTP fight each other

Your server redirects http to https, but a plugin, CDN or proxy redirects https back to http. This happens a lot behind a CDN or load balancer when the SSL mode is set to "Flexible": the visitor connects over https, the CDN talks to your server over http, and your server answers with "go to https" forever.

Fix: set the CDN to "Full" or "Full (strict)" and install a valid certificate on the origin. Check it with the SSL certificate checker.

2. www and non-www conflict

One rule sends www to the bare domain and another sends the bare domain to www.

Fix: choose one version, keep a single rule for it and remove the opposite one in every place it exists: the server config, the CMS settings and the CDN.

3. The site address is set differently in two places

Many platforms store the site URL in a setting. If it says https://www.example.com but the server forces https://example.com, they bounce the visitor between them.

Fix: make the site address setting, the server redirect and the canonical tags all use the same preferred version.

4. A trailing slash rule that undoes itself

One rule adds a trailing slash and another removes it.

Fix: keep one rule only.

5. Cached redirects and cookies

A 301 is cached by browsers for a long time, so a page that you already fixed can still look broken to you. Some login and language redirects also loop when a cookie is missing or corrupt.

Fix: clear cookies for the site, test in a private window and test again in the redirect checker, which does not use your browser cache.

6. Rules added by a plugin, theme or old migration

Security, caching, SEO and redirect plugins can all add rules. So can an old .htaccess or nginx file left from a previous setup.

Fix: switch plugins off one at a time, then read the server redirect file from top to bottom and remove duplicates.

Step 2: fix it at the source

Redirects can come from four layers. Check them in this order, from the outside in:

  1. CDN or proxy: SSL mode, page rules and "always use HTTPS" settings.
  2. Web server: .htaccess on Apache, server blocks on nginx, or the host's redirect panel.
  3. Platform or CMS: the site address, the preferred domain and any redirect app or plugin.
  4. Application code: forced-HTTPS or canonical-host logic in the framework.

Use the redirect rule generator to produce one clean rule set for forcing HTTPS and choosing www or non-www, then replace the conflicting rules with it.

Step 3: confirm the fix

  1. Run all four versions through the redirect checker: http and https, with and without www. Each should end in one 301 to your preferred address, then a 200.
  2. Check the final response with the HTTP header checker, including as Googlebot.
  3. In Search Console, open the affected URL in URL Inspection and request indexing.

Redirect loop vs redirect chain

A loop never ends. A chain ends, but takes too many hops, such as http to https to www to a new path. Chains do not show an error, but they slow pages down and waste crawl budget. Aim for a single hop from any old address to its final one.

Common questions

Does a redirect loop hurt SEO?

Yes. Googlebot cannot reach a page that loops, so the page cannot be indexed, and existing pages can drop out of results until it is fixed.

Why does the site work for others but not for me?

Cached 301s and cookies are stored per browser. Try a private window, clear the cookies for the site, or test from another network.

Is a 301 or a 302 better for fixing it?

The status code does not cause a loop, the rules do. For a permanent move to the preferred address use a 301 or 308.

Free tools for this problem

More guides