WordPress too many redirects error (ERR_TOO_MANY_REDIRECTS) indicates that the browser is redirected from one address to another, eventually returning to where it started, and stopping to break the cycle. The loop usually results from two settings pointing to each other: the site address and the SSL setting, Cloudflare the server, or a redirect plugin and the .htaccess rule. Once you figure out which two settings are conflicting, the solution is often a single change.

Eliminate the browser side first

Open the site in an incognito window and in a different browser. If the error only appears in your normal window, old cookies or cache are continuing the loop; It is enough to delete the cookies of this site. If the same error occurs everywhere, the problem is with the server or the WordPress setting.

See the redirect chain

The quickest way to unravel the loop is to see each step of the chain. On the command line, the following command lists each redirect in order:

curl -sIL https://www.alanadiniz.com | grep -i -E "^HTTP|^location"

The status code of each response and the next address appear in the output. If you see the same two addresses repeating sequentially, you have found the two ends of the loop. For example, a chain from https to http and back to https refers to the SSL setting, from www to no-www, and back again to the site address setting.

The four most common causes and solutions

Reasonappearing on the chainFix
Cloudflare Flexible SSLSwitching between https and httpSet SSL to Full or Full (strict)
siteurl and home are differentSwitching between www and no wwwMake two values ​​the same and correct address
Double redirect ruleThe same page goes to two different addressesRemove any plugin or .htaccess rules
https not detected behind load balancerWordPress keeps redirecting to httpsIntroduce proxy header in wp-config.php

If you cannot enter the panel, fix the address

If the loop also closed the admin panel, temporarily write the correct address in the wp-config.php file:

define( 'WP_HOME', 'https://www.alanadiniz.com' );
define( 'WP_SITEURL', 'https://www.alanadiniz.com' );

These lines override the address values ​​in the database. After entering the panel, you can set the addresses on the Settings, General page to the same value and remove the lines. For other panel access issues WordPress I cannot enter the admin panel See our guide.

Exception for sites using Cloudflare

Many sites in Türkiye are available with the free Cloudflare plan, and the SSL mode remains on the default Flexible setting most of the time. In this mode Cloudflare serves https to the visitor but connects to the server via http. If a SSL plugin or .htaccess rule on the server redirects the http request to https, Cloudflare comes back with http and the cycle begins. Installing a free certificate on the server and setting the mode to Full (strict) both solves the loop and encrypts the connection end-to-end.

Check after solution

After the loop is resolved, run the curl command again. In the ideal chain, addresses without http and www would go to the final address in a single 301 step, and the final response would be 200. If there is more than one intermediate step left, reducing them to a single step is better for both speed and search engines. If you also see a mixed content warning WordPress mixed content error Continue with our guide.

Loop on multilingual and subdomain sites

On sites that use language plugins, the language redirect may conflict with the SSL or www redirect. For example, depending on the browser language, a rule that redirects to /en/ may create a loop when combined with the www rule on the server. On such sites, first temporarily turning off language forwarding and looking at the curl chain quickly shows which layer is looping.

Common mistakes

  • Turning on Cloudflare redirect with SSL plugin: Routing should be done in a single layer.
  • Making address pin lines permanent: It creates confusion during subsequent migrations and domain name changes.
  • Testing without clearing the cache: The old redirect response may still come from the cache.

To fix the routing and SSL settings for you WordPress technical support You can create a request on our page.

Is the error only in my browser?

Sometimes old cookies continue the cycle. Try it in an incognito window; If it is seen there too, the problem is on the site.

Which SSL mode should I choose in Cloudflare?

If there is a valid certificate on the server, Full or Full (strict) should be selected. Flexible mode creates a loop if the server also redirects to https.

Does the redirect plugin create a loop?

Yes. If there are different redirect rules for the same address in both the plugin and the .htaccess file, a loop may occur.