Fix WordPress Redirect Loop
WordPress keeps redirecting in a loop. The browser says ’too many redirects.’ Here’s the fix.
“ERR_TOO_MANY_REDIRECTS” means your site is redirecting in a circle. The browser gives up after about 20 redirects. This almost always comes down to conflicting HTTPS rules or mismatched WordPress URLs.
Step 1: Clear Your Browser
Before debugging, rule out a stale cookie problem:
- Clear cookies for your domain (or use an incognito/private window)
- Try loading the site again
If it works in incognito, clear your browser’s cookies and cache for the site.
Step 2: Check WordPress URL Settings
WordPress stores two URLs in the database:
- WordPress Address (URL) - where WordPress files live
- Site Address (URL) - what visitors see
If these don’t match, or if one uses http:// while the other uses https://, you get a redirect loop.
Since you can’t access wp-admin, fix it directly in wp-config.php:
define('WP_HOME', 'https://yourdomain.com');
define('WP_SITEURL', 'https://yourdomain.com');
Add these lines before the “stop editing” comment. Replace yourdomain.com with your actual domain.
Both URLs must use https:// if you have SSL active. Mixing http:// and https:// between these two values is the most common cause of redirect loops.
Step 3: Check .htaccess
Conflicting redirect rules in .htaccess cause loops. Common scenario: you have an HTTPS redirect in .htaccess AND the cPanel “Force HTTPS” toggle is on. Both try to redirect, creating a loop.
Test by renaming .htaccess:
mv ~/public_html/.htaccess ~/public_html/.htaccess.bak
If the site loads, rebuild .htaccess:
- Log into wp-admin
- Go to Settings > Permalinks
- Click Save Changes (this regenerates
.htaccess)
Pick one HTTPS redirect method and stick with it:
- Option A: cPanel toggle (Domains > Force HTTPS Redirect)
- Option B:
.htaccessrule - Not both
Step 4: Check for Plugin Conflicts
Redirect-related plugins can conflict with each other or with server-level redirects:
- Redirection plugin
- SSL plugins (Really Simple SSL, WP Force SSL)
- Caching plugins with HTTPS settings
Deactivate all plugins via File Manager:
mv ~/public_html/wp-content/plugins ~/public_html/wp-content/plugins.disabled
If the loop stops, rename the folder back and test plugins one by one.
Step 5: Cloudflare or CDN Conflict
If you’re using Cloudflare in front of GoZen Host:
- Log into Cloudflare
- Go to SSL/TLS
- Set the mode to Full (strict), not Flexible
Flexible SSL means Cloudflare connects to your server over HTTP, but your server redirects HTTP to HTTPS, and Cloudflare redirects back. Infinite loop.
Full (strict) uses HTTPS end-to-end and breaks the loop.
Step 6: Fix via Database (Last Resort)
If nothing else works, update the URLs directly in the database:
- Go to cPanel > phpMyAdmin
- Select your WordPress database
- Open the
wp_optionstable - Find the rows where
option_nameissiteurlandhome - Change both
option_valuefields tohttps://yourdomain.com - Save
What to Do Next
- Fix SSL Mixed Content - if you see HTTPS warnings after fixing the loop
- SSL Certificates - make sure your SSL setup is clean
- LiteSpeed Cache for WordPress - purge the cache after fixing redirects
- Contact GoZen Support - persistent redirect loops may need server-side investigation
Last updated 07 Apr 2026, 00:00 +0200.