ERR_TOO_MANY_REDIRECTS: How to Fix a Redirect Loop on Your Website

ERR_TOO_MANY_REDIRECTS means your browser was sent round in a circle: page A redirected to page B, which redirected back to A, and so on until the browser gave up. This is called a redirect loop. It's almost always caused by two settings that disagree, usually about HTTPS or www. This guide shows how to fix ERR_TOO_MANY_REDIRECTS on your website, quickest checks first.

What the error looks like

BrowserMessage
Chrome and Edge"This page isn't working. example.com redirected you too many times. Try deleting your cookies. ERR_TOO_MANY_REDIRECTS"
Firefox"The page isn't redirecting properly"
Safari"Safari Can't Open the Page" ... "too many redirects occurred"

Common causes on Instant Access Internet Services hosting

  • Two HTTPS rules fighting. For example WordPress is set to http:// while an .htaccess rule forces https://, or a plugin and .htaccess both force HTTPS in different ways.
  • www and non-www disagree. WordPress's address uses www.example.com while a redirect sends www visitors to example.com (or the other way round).
  • Cloudflare "Flexible" SSL. Cloudflare connects to our server over plain HTTP, our site redirects to HTTPS, Cloudflare asks over HTTP again, forever.
  • A redirect pointing to itself in Domains > Redirects, for example a redirect from example.com to https://example.com. The redirect also catches the HTTPS address, so it keeps sending visitors back to where they already are.
  • A redirect or security plugin (or a cached copy of an old redirect).

How to fix ERR_TOO_MANY_REDIRECTS

Step 1: Rule out your browser

  1. Open the site in a private or incognito window, or on your phone using mobile data.
  2. If it works there, clear cookies and cached files for your domain in your normal browser. Google's own advice for this error is to delete your cookies.

If it fails everywhere, the loop is on the website. Carry on.

Step 2: Check WordPress's site address

Both addresses must match the version of your site you actually want, including https and www or no www.

  1. If you can log in, go to Settings > General and check WordPress Address (URL) and Site Address (URL). Both should be the same, for example https://example.com.
  2. If you can't reach the dashboard, open Files > File Manager, edit wp-config.php, and add these lines above /* That's all, stop editing! */ (use your own address):
    define( 'WP_HOME', 'https://example.com' );
    define( 'WP_SITEURL', 'https://example.com' );
  3. Reload the site. If it works, you can leave the lines in, or fix the addresses in Settings > General and remove them.

Step 3: Check .htaccess

  1. In File Manager, open public_html and turn on hidden files (see the guide below).
  2. Download a copy of .htaccess, then rename it to .htaccess.off.
  3. Reload the site. If the loop stops, one of its redirect rules was the cause. For WordPress, go to Settings > Permalinks and click Save Changes to create a clean file, then add back just one HTTPS rule (see the force HTTPS guide below).

Look out for more than one block that redirects to HTTPS or to www. Keep one of each at most, and make sure they point at the same final address.

Step 4: Check cPanel Redirects

  1. In cPanel, go to Domains > Redirects.
  2. Look at the list of current redirects at the bottom of the page. Remove any that redirect your domain to itself or duplicate a rule you already have in WordPress or .htaccess.

Step 5: Check Cloudflare (if you use it)

If your domain uses Cloudflare, go to its SSL/TLS settings and set the encryption mode to Full (strict), not Flexible. Your site already has a free certificate from AutoSSL, so Full (strict) works.

Step 6: Disable redirect plugins and purge the cache

  1. In File Manager, rename the folder of any redirect, SSL or security plugin in wp-content/plugins (add .off to the end) and test again.
  2. Purge LiteSpeed Cache so an old cached redirect isn't served (see the purge guide below). If you can't log in to WordPress, temporarily renaming the litespeed-cache plugin folder is enough to test.

Common questions

It started right after I turned on HTTPS. Why?

You probably now have two things forcing HTTPS, or WordPress still has http:// in its site address. Fix the address first (Step 2), then keep only one HTTPS redirect.

Will clearing my cookies fix it for everyone?

No. Cookies only matter if the loop is in your browser. If the site loops in a private window too, the fix is on the website.

When to open a ticket

If you've tried these steps and the loop remains, open a ticket with the exact address that loops, whether you use Cloudflare, and any recent changes (HTTPS, www, a new plugin). Please don't send passwords in the ticket.

Related guides

Still stuck? Open a support ticket and the Instant Access Internet Services team will help.

Ultrafast LiteSpeed hosting from InstantAccess.net: free SSL, free backups, cPanel included, no contracts. Check out our $10/month hosting.
  • err_too_many_redirects, redirected you too many times, this page isn't working, redirect loop, the page isn't redirecting properly, wordpress too many redirects, too many redirects https
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

429 Too Many Requests: What It Means and How to Fix It

A 429 Too Many Requests error means something decided that one visitor, program or website sent...

500 Internal Server Error: What It Means and How to Fix It

A 500 Internal Server Error means the web server hit a problem it couldn't recover from while...

400 Bad Request Error: What It Means and How to Fix It

A 400 Bad Request error means the server received a request it couldn't understand, so it refused...

401 Unauthorized Error: What It Means and How to Fix It

A 401 Unauthorized error means the page you asked for needs a login, and the server didn't...

403 Forbidden Error: What It Means and How to Fix It

A 403 Forbidden error means the server understood the request but refused to show the page....