WordPress Too Many Redirects Error: 7 Proven Fixes
The WordPress too many redirects error usually shows up at the worst possible moment: right after you add SSL, move hosts or switch on Cloudflare. Suddenly your store shows a browser warning instead of products, and every visitor who sees it is a sale you won’t get. Fortunately, the cause is almost always two settings arguing with each other, and you can usually work out which two in under an hour. This guide goes through each cause in the order I’d check it on a client’s site.
See how our Hosting & cPanel service handles this →
Quick answer: The WordPress too many redirects error means two settings keep sending the browser back and forth, usually between HTTP and HTTPS or www and non-www. Fix it by matching your Site Address and WordPress Address, setting Cloudflare SSL to Full, cleaning up .htaccess rules, and turning off redirect or SSL plugins one at a time.
What a redirect loop actually is (and why browsers give up)
A redirect is just an instruction that says “this page lives over there.” A loop happens when page A points to page B and page B points straight back to A. Your browser follows the chain about 20 times, then gives up. Chrome shows ERR_TOO_MANY_REDIRECTS and Firefox says “The page isn’t redirecting properly.”
In other words, the WordPress too many redirects error is never a broken file. It’s a disagreement. WordPress, your web server, your SSL setup, a plugin or a CDN each believe the “correct” address is something different, and they keep bouncing the visitor between versions. To fix it, find the two layers that disagree and make them agree.
Do this before changing anything
- Take a full backup of your files and database from your host or backup plugin. If you’re not sure you could roll back, read our guide on restoring a WordPress site from backup first.
- Open the site in a private or incognito window so old cookies don’t mislead you.
- Write down which URLs loop: the whole site, only wp-admin, or only cart and checkout. That one detail narrows the cause a lot.
- Change one thing at a time, then retest. If you change three settings at once, you won’t know which one fixed it.
Keep that list of looping URLs handy. Every cause of the WordPress too many redirects error below starts with a symptom, so you can jump straight to the one that matches yours.
1. WordPress Address and Site Address don’t match
Symptom: The whole site loops, often right after a migration, a domain change or a switch to HTTPS.
Why it happens: WordPress stores two URLs, the WordPress Address (siteurl) and the Site Address (home). Say one uses https://www. and your server forces https:// without www. In that case, each layer keeps redirecting to its own version. This kind of mismatch is the most common trigger for the WordPress too many redirects error.
How to check: If you can reach wp-admin, go to Settings → General. If you can’t, open phpMyAdmin in cPanel and look at the wp_options table (your prefix may be different). If you have SSH access, you can run:
wp option get home
wp option get siteurlHow to fix it:
- Choose one canonical address, for example https://www.yourstore.com, and use it everywhere.
- Update both values in Settings → General, or run
wp option update home 'https://www.yourstore.com', then do the same forsiteurl. - If you’re locked out, set
WP_HOMEandWP_SITEURLin wp-config.php for now. The official wp-config.php documentation on WordPress.org explains both constants. - Clear every cache layer, then test again in a private window.
If the loop started after a rebrand, our walkthrough on changing your WordPress domain without losing SEO covers the database search-and-replace step people often miss.
2. Cloudflare Flexible SSL causing a WordPress too many redirects error
Symptom: Everything worked until you turned on Cloudflare or installed a certificate on the server. Now every page loops.
Why it happens: In Cloudflare’s “Flexible” SSL mode, the visitor connects to Cloudflare over HTTPS, but Cloudflare connects to your server over plain HTTP. WordPress sees an HTTP request and redirects it to HTTPS. Cloudflare then fetches the page over HTTP again, and the loop starts.
How to check: In the Cloudflare dashboard, open SSL/TLS → Overview and look at the encryption mode. If it’s set to Flexible and your server has its own certificate (most cPanel hosts include free AutoSSL), you’ve probably found the cause.
How to fix it:
- Make sure your server has a valid certificate (cPanel → SSL/TLS Status).
- Switch Cloudflare to Full (strict). Use plain “Full” only for a short time if your origin certificate isn’t trusted yet.
- Leave “Always Use HTTPS” on in Cloudflare, then remove duplicate HTTP-to-HTTPS rules from plugins so only one layer does the job.
- Purge Cloudflare’s cache and test again.
Other reverse proxies and load balancers cause the same problem. In those setups, WordPress has to trust the forwarded protocol header. A common fix is to add this to wp-config.php, above the “stop editing” line:
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ) {
$_SERVER['HTTPS'] = 'on';
}3. Conflicting rules in .htaccess or the server config
Symptom: The loop started after you or a plugin added a “force HTTPS” or “force www” rule, or after a move to a new host.
Why it happens: Server rules run before WordPress even loads. If .htaccess forces non-www while WordPress is set to www, the two will bounce visitors forever. Old rules copied over from a previous host are another frequent cause of the WordPress too many redirects error.
How to check: Open File Manager in cPanel, turn on “Show hidden files” and open the .htaccess file in your site’s root folder. Look for RewriteCond lines that mention HTTPS, HTTP_HOST or www.
How to fix it:
- Download a copy of .htaccess as a backup.
- Rename it to
.htaccess-oldand reload the site. If the loop stops, that file was the problem. - Go to Settings → Permalinks and click Save. WordPress will write a clean default block.
- Add back only one HTTPS/www rule, and make sure it points to exactly the same address as your Site Address.
On Nginx servers, the same logic lives in the server block, which your host usually manages. Look for duplicate return 301 lines, or ask your host to check them for you.
4. An SSL, security or redirect plugin fighting back
Symptom: The loop appeared right after you installed or updated an SSL helper, a redirection manager or a security plugin.
Why it happens: Plugins add their own redirects on top of the server’s. Two layers that both force HTTPS usually get along. However, two layers that disagree about www, trailing slashes or a specific page will cause the WordPress too many redirects error.
How to check and fix it:
- If you can reach wp-admin, deactivate SSL, security and redirect plugins one at a time, and retest after each.
- If you’re locked out, use cPanel File Manager or SFTP to rename
wp-content/pluginstoplugins-off. If the site loads, rename it back, then rename individual plugin folders one by one until the loop comes back. - With SSH,
wp plugin deactivate --allfollowed bywp plugin activate plugin-namedoes the same thing faster. - Open your redirect plugin’s rule list and look for any rule that sends a page to itself, such as /shop to /shop/ while another rule strips the slash.
Themes rarely cause loops, but if plugins are clean, switch briefly to a default theme to rule it out.
5. Duplicate redirects at the hosting or cPanel level
Symptom: You’ve fixed the WordPress settings and .htaccess, but the site still loops, sometimes only on the bare domain.
Why it happens: cPanel has its own Redirects tool, and many hosts offer a “Force HTTPS Redirect” switch under Domains. If a cPanel redirect points to www and WordPress points to non-www, you get the WordPress too many redirects error even though both settings look “right” on their own.
How to check: In cPanel, open Domains and look at the HTTPS toggle, then open Redirects and review the list. To see every hop, run this from a terminal:
curl -sIL https://yourstore.com | grep -i locationIf the same two addresses keep repeating in the output, you can see exactly which pair is looping.
How to fix it: Delete any redundant cPanel redirects and keep a single rule that matches your canonical address. Also confirm that addon or alias domains point to the correct document root.
6. Stale cache in the browser, plugin, server or CDN
Symptom: You’ve fixed the cause, but you still see the loop. Alternatively, a colleague sees the site fine while you don’t.
Why it happens: Browsers cache 301 redirects aggressively. Page-cache plugins, server caches such as LiteSpeed or Varnish, and CDNs can also store the looping response. As a result, the WordPress too many redirects error can outlive the setting that caused it.
How to fix it:
- Clear cookies and site data for your domain, then test in a private window and on your phone using mobile data.
- Purge your caching plugin completely.
- Purge the server cache from your hosting panel.
- Purge your CDN cache, including Cloudflare.
If edits still don’t show up after all that, our guide to WordPress changes not showing on site goes through each cache layer in detail.
7. WooCommerce checkout, My Account and login loops
Symptom: The homepage loads fine, but /checkout/, /my-account/ or the wp-admin login keeps looping.
Why it happens: For a store, this version of the WordPress too many redirects error is the most expensive, because everything looks fine until someone tries to pay. Common causes include store pages assigned incorrectly, cart or checkout being cached, and a wrong COOKIE_DOMAIN that stops login cookies from sticking.
How to fix it:
- Go to WooCommerce → Settings → Advanced and confirm that Cart, Checkout and My Account each use their own correct page.
- Exclude cart, checkout and my-account from page caching and CDN caching.
- Open wp-config.php and remove or correct any
COOKIE_DOMAINorFORCE_SSL_ADMINlines that don’t match your real setup. - Clear cookies and place a test order from a private window.
Quick troubleshooting table
Use this table to match what you see with the most likely cause of your WordPress too many redirects error.
| Symptom | Likely cause | Quick fix |
|---|---|---|
| Whole site loops after migration | Site Address and WordPress Address mismatch | Make both URLs identical (https, www or not) |
| Loop started when Cloudflare went on | Flexible SSL mode | Switch to Full (strict) and purge cache |
| Loop after adding a force-HTTPS rule | Conflicting .htaccess or Nginx rules | Rename .htaccess, re-save permalinks |
| Loop after installing a plugin | SSL, security or redirect plugin | Disable plugins one by one |
| Still loops after WordPress fixes | cPanel redirect or host HTTPS toggle | Remove duplicate host-level redirects |
| Only you see the loop | Stale browser or CDN cache | Clear cookies, purge all caches |
| Only checkout or login loops | WooCommerce page setup or cookie settings | Fix page assignments, exclude from cache |
When to call in a pro
Some loops involve three or four layers at once: Cloudflare, cPanel, .htaccess and a plugin, each adding its own redirect. Untangling that on a live store can be stressful, especially when every change risks locking you out of wp-admin.
If you’ve worked through this list and still see the WordPress too many redirects error, or you’d simply rather not experiment on a store that pays your bills, our Hosting & cPanel service takes care of it. Here’s what it covers:
- SSL, caching and a staging site configured properly
- Business email set up
- cPanel or hosting takeover and cleanup, including stray redirects
- PHP version updates, including moves off end-of-life PHP
- From $140, fixed or refunded
Not sure which cause you’re dealing with? Describe what you’re seeing on WhatsApp, and we’ll send you a no-obligation quote.
Leave your name and what is happening on WhatsApp — we diagnose it, talk it through and send you a quote. No obligation, no jargon.
Message us on WhatsAppFrequently asked questions
Will the WordPress too many redirects error hurt my SEO?
A loop that lasts a few minutes rarely matters. If it lasts days, though, Google can’t crawl your pages and rankings may slip. Fix it quickly, and keep one consistent 301 redirect to your canonical address.
Why does only wp-admin loop while the front end works?
This is usually a cookie or URL problem. Check that the WordPress Address uses the same protocol and www setting as the Site Address. Also review FORCE_SSL_ADMIN and COOKIE_DOMAIN in wp-config.php, especially behind a proxy.
Can clearing browser cookies fix it?
Yes, if the loop is only cached on your device. If the site still loops in a private window or on another network, the cause is on the server side and you need to work through the causes above.
Should I use Cloudflare Flexible or Full SSL?
Use Full (strict) whenever your server has a valid certificate. Flexible mode leaves the connection to your server unencrypted, and it’s one of the most common causes of redirect loops on WordPress.
Do I need an SSL plugin after switching to HTTPS?
Usually not. Once both site URLs use https and a single server rule handles the redirect, WordPress doesn’t need a plugin for this. Extra SSL plugins mainly add another layer that can conflict.






