Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Fix ERR_TOO_MANY_REDIRECTS: Solve Redirect Loop in WordPress & Cloudflare

Why You Are Getting the “Too Many Redirects” Error?

The ERR_TOO_MANY_REDIRECTS issue occurs when your website enters a redirection loop. Based on your DNS records and Cloudflare settings, here are the possible reasons:

1. HTTPS Redirect Loop (Cloudflare vs. GoDaddy)

  • Issue: Cloudflare forces HTTPS while your GoDaddy server may also be forcing HTTPS.
  • Fix:
    1. Login to Cloudflare Dashboard → Go to SSL/TLS Settings.
    2. Set SSL mode to “Full” (Not “Flexible”).
    3. If it’s already “Full (Strict)”, try switching to “Full”.
    4. Disable Automatic HTTPS Rewrites in Cloudflare (temporarily).

2. Misconfigured WordPress URL

  • Issue: WordPress might be set to HTTP while Cloudflare enforces HTTPS.
  • Fix:
    1. Login to phpMyAdmin (via cPanel or database).
    2. Locate the database of your WordPress site.
    3. Find the wp_options table.
    4. Edit these values:
    5. Save changes and clear Cloudflare cache.

3. Conflicting Redirects in .htaccess

  • Issue: There might be multiple redirect rules inside your .htaccess file.
  • Fix:
    1. Go to your GoDaddy hosting file manager.
    2. Open the .htaccess file (inside public_html).
    3. Remove any duplicate or conflicting rules related to: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    4. Save and restart the server.

4. Incorrect DNS CNAME for “www”

  • Issue: Your www.domainname.in is a CNAME pointing to domainname.in, which already has an A record.
  • Fix: Convert www.domainname.in from a CNAME to an A record with: www 1 IN A xxx.xxx.xxx.xxx

5. Clear Cloudflare Cache

  • Go to: Cloudflare DashboardCachePurge Everything.

Final Steps to Fix

Step 1: Fix SSL settings in Cloudflare (Full mode, disable automatic HTTPS rewrite).
Step 2: Update WordPress URL in phpMyAdmin (wp_options).
Step 3: Remove unnecessary .htaccess redirects.
Step 4: Change www.domainname.in from CNAME to A record.
Step 5: Purge Cloudflare Cache and restart the server.

After making these changes, test the site again.

6 thoughts on “Fix ERR_TOO_MANY_REDIRECTS: Solve Redirect Loop in WordPress & Cloudflare”

Leave a Comment