Knowledgebase

How to fix ERR_TOO_MANY_REDIRECTS

This guide explains how to fix ERR_TOO_MANY_REDIRECTS ("This page isn't working – example.com redirected you too many times"). The error means your website is stuck in a redirect loop: page A sends the browser to page B, and B sends it back to A. The usual causes are conflicting HTTPS or www rules, Cloudflare's Flexible SSL mode, a wrong WordPress address, or a redirect plugin.

Step 1: Clear cookies and confirm the loop

  1. Open the site in an incognito window. If it works there, clear cookies for that site in your normal browser.
  2. If it still loops, see where the redirects go. From any terminal run:
    curl -sIL https://example.com | grep -iE "^(HTTP|location)"
    You will see a list of addresses. If they repeat (for example http:// → https:// → http://), you have found the loop. Online "redirect checker" sites show the same thing.

Step 2: Check Cloudflare (if you use it)

The most common cause we see. With SSL/TLS mode set to Flexible, Cloudflare talks to your server over HTTP. Your server (or WordPress) then redirects to HTTPS, Cloudflare asks again over HTTP, and the loop never ends.

  1. In the Cloudflare dashboard, open your domain and go to SSL/TLS.
  2. Change the encryption mode to Full (strict). Your hosting already has a free certificate; see How to get a free SSL certificate for your website (AutoSSL).
  3. Wait a minute and test again in an incognito window.

Step 3: Remove duplicate redirect rules on the hosting

Use only one place to force HTTPS and choose www or non-www. Check these places and keep a single rule:

  • cPanel → Domains → the Force HTTPS Redirect switch.
  • cPanel → Redirects: delete any redirect that points the domain to itself.
  • The .htaccess file in public_html (open it with File Manager, enable "Show Hidden Files"). Look for rules with RewriteRule and R=301 that send www to non-www while another rule does the opposite.

The correct rules are explained in How to Force HTTPS and Redirect www to non-www (or non-www to www). Always download a copy of .htaccess before editing it.

Step 4: Fix the WordPress address

If WordPress has WordPress Address (URL) and Site Address (URL) set to http:// while the server forces https://, or to www while the server removes it, you get a loop and you cannot open wp-admin to fix it. Fix it from wp-config.php:

  1. Open public_html/wp-config.php in File Manager and make a backup copy.
  2. Above the line /* That's all, stop editing! */ add (with your real domain):
    define( 'WP_HOME', 'https://example.com' );
    define( 'WP_SITEURL', 'https://example.com' );
  3. Save and test. Once you can log in, you can fix the values under Settings → General and remove these two lines.

Step 5: Rule out plugins

SSL, redirect, cache and multilingual plugins can create loops. In File Manager, rename wp-content/plugins to plugins-off. If the site loads, rename it back and disable the plugins one by one from wp-admin to find the culprit. Then clear any cache plugin and the Cloudflare cache.

Tip: change one thing at a time and test in an incognito window after each change. Browsers remember 301 redirects, so an old normal window can keep showing the loop after you have fixed it.

Frequently asked questions

Why did the error start right after I added Cloudflare?

Almost certainly the Flexible SSL mode. Switch it to Full (strict) as explained in Step 2.

Is the problem only on my computer?

If it works in incognito and on other devices, it was old cookies or a cached redirect on your browser. If it fails everywhere, the loop is on the site.

I fixed it but the admin panel still loops.

Clear your cookies for the domain and log in again. If you also changed the domain or HTTPS settings, check the two values in wp-config.php, and reset your password if needed with How to Reset Your WordPress Admin Password.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • ERR_TOO_MANY_REDIRECTS, redirect loop, too many redirects, Cloudflare Flexible SSL, WordPress redirect loop, htaccess redirect, حل مشكلة ERR_TOO_MANY_REDIRECTS

Was this answer helpful?

0 Users Found This Useful