How to Fix a 'Too Many Redirects' Error (Redirect Loop) — cPanel & Hosting How-Tos cPanel & Hosting How-Tos

How to Fix a 'Too Many Redirects' Error (Redirect Loop)

By Genhost Team 2 min read

A “Too Many Redirects” error (ERR_TOO_MANY_REDIRECTS) means your site is stuck in a loop: one URL redirects to another, which redirects back, endlessly, until the browser gives up. It looks alarming but the cause is almost always one small conflict. Here’s how to fix it.

What causes a redirect loop

  • www vs non-www conflict — one rule forces www, another forces non-www.
  • HTTP vs HTTPS conflict — something forces HTTPS while something else sends it back to HTTP.
  • A WordPress URL mismatch — the site URL still says http:// after moving to SSL.
  • Duplicate redirect rules — two force-HTTPS rules, or a plugin and .htaccess both redirecting.
  • A Cloudflare SSL mode mismatch — “Flexible” SSL looping with a server-side HTTPS redirect.

How to fix it

1. Fix the WordPress site URL

In Settings → General, make sure both WordPress Address and Site Address use the same, correct form — https://yourdomain.com (pick www or non-www and stay consistent). If you’re locked out, set it in wp-config.php:

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

2. Keep only ONE redirect rule

The most common cause is two forces fighting. Decide on one canonical form (e.g. https://yourdomain.com) and remove duplicates:

  • Check .htaccess in File Manager for more than one HTTPS/www redirect block — keep a single clean one. See force HTTPS the right way and .htaccess explained.
  • Deactivate any SSL or redirect plugin (Really Simple SSL, etc.) temporarily — if the loop clears, the plugin was duplicating a rule you already have.

3. Check Cloudflare / CDN SSL mode

If you use Cloudflare, “Flexible” SSL plus a server-side force-HTTPS rule creates a classic loop. Set Cloudflare SSL to Full (or Full (strict)) since your site already has a real certificate — see install a free SSL certificate.

4. Clear every cache

Redirect rules get cached hard. Clear your browser cache (or test in a private window), purge LiteSpeed/site cache, and purge Cloudflare — see clear your cache when changes don’t show. A loop often looks unfixed only because of caching.

5. Confirm the certificate is valid

If HTTPS isn’t actually working, forcing it causes loops. Check your SSL is installed and valid — see fix SSL not working and fix the “Not Secure” warning.

Still looping?

Your error logs and our site-down troubleshooting guide help trace which rule fires first. Our support team can also see the redirect chain from the server side.

Every Web Hosting and WordPress Hosting plan at Genhost includes free SSL and File Manager, so fixing a redirect loop is usually a one-line change you can make yourself.

Frequently asked questions

What does 'ERR_TOO_MANY_REDIRECTS' mean?

It means your site is stuck in a loop — page A redirects to page B, which redirects back to A, forever. The browser gives up. It's almost always a conflict between www/non-www or HTTP/HTTPS redirect rules, or a WordPress URL mismatch.

Why did a redirect loop start right after I added SSL?

A common cause: a plugin or .htaccess rule forces HTTPS while another setting forces it back, or your WordPress site URL still says http:// . Set the site URL to https:// and keep only one force-HTTPS rule.

How do I fix a redirect loop in WordPress?

Check Settings > General for the correct https:// site URL (or set it in wp-config.php), remove duplicate redirect rules in .htaccess, deactivate any SSL/redirect plugins temporarily, and clear all caches.