wpXpart

Error Fixes

How to Fix Too Many Redirects Error (ERR_TOO_MANY_REDIRECTS) in WordPress (2026)

Fix the too many redirects error (ERR_TOO_MANY_REDIRECTS) in WordPress in 9 steps: clear cookies, match site URLs, fix HTTPS and CDN SSL settings, reset .htaccess and test plugins.

wpXpart AgencyUpdated on November 25, 20269 min read
How to Fix Too Many Redirects Error (ERR_TOO_MANY_REDIRECTS) in WordPress (2026)

You type your address into the browser and instead of your website you see: This page is not working. yourwebsite.com redirected you too many times. This is the too many redirects error in WordPress, also shown as ERR_TOO_MANY_REDIRECTS, and it means your site is stuck in a redirect loop. The good news is that it is almost always caused by a settings conflict, not by lost data, and it can usually be fixed in minutes.

This guide explains what causes the too many redirects error in WordPress and gives you 9 proven steps to fix it, from clearing cookies and checking your site URLs to fixing HTTPS, Cloudflare, .htaccess and plugin conflicts.

Quick answer: To fix the too many redirects error in WordPress, clear your browser cookies and every cache, make sure the WordPress Address and Site Address match and use the same https and www choice, use only one HTTPS redirect method, set your CDN’s SSL mode to full, reset the .htaccess file, disable redirect, security and cache plugins, and check the redirect rules at your host.
Diagram of a WordPress redirect loop where an http page and an https page redirect to each other, with the ERR_TOO_MANY_REDIRECTS browser error and six common causes
Illustration: a redirect loop and six common causes.

What does too many redirects mean in WordPress?

A redirect sends visitors from one address to another. A redirect loop happens when two or more rules keep sending the browser back and forth, for example from http to https and back to http. After several attempts the browser gives up and shows ERR_TOO_MANY_REDIRECTS. Different browsers show slightly different wording, but the cause is the same.

Common causes of the too many redirects error

CauseTypical clueFix
Mismatched site addressesIt began after a migration, a domain change or an SSL installMake both addresses identical
Two HTTPS redirect rulesA plugin and the server both force HTTPSKeep only one method
Wrong CDN SSL modeA CDN uses a flexible mode while the server forces HTTPSSwitch to a full SSL mode
Bad .htaccess ruleIt began after editing redirects or a plugin changeReset the file
Redirect, security or cache pluginIt began after installing or updating oneDisable and test
www and non-www conflictThe host and WordPress use different choicesPick one version everywhere
Old cookies or cacheIt works in a private windowClear cookies and caches

Before you start

  • Test in a private window and another browser. If the site opens there, your cookies or cache are the problem.
  • Take a backup of your files and database before you change anything.
  • Get file access. You may need FTP or your host’s File Manager, because the dashboard might not open.
  • Remember what changed last. An SSL certificate, a plugin, a domain or a CDN setting is usually the trigger.

How to fix too many redirects in WordPress: 9 steps

Six-step flow for fixing the too many redirects error in WordPress: clear cookies and cache, match site URLs, fix HTTPS and SSL, reset htaccess, disable plugins and check www and host redirect rules
Illustration: six moves for breaking the redirect loop.

Step 1: Clear your browser cookies and cache

Old cookies can create a loop even when the site is fine. Clear cookies and cached files for your website only, then reload. Also test in a private window and on another device or network. If the site opens there, the problem was local.

Step 2: Clear every site cache

Clear your caching plugin, your hosting cache and your CDN cache. A cached redirect can keep the loop alive after you fix the real cause.

Step 3: Check the WordPress Address and Site Address

If you can open the dashboard, go to Settings, General and check the WordPress Address (URL) and Site Address (URL). Both should use the same protocol and the same www choice, for example https://yourwebsite.com for both. A mismatch, such as one address using http and the other using https with www, is a classic cause.

Comparison of the WordPress Address and Site Address settings, showing a correct matching pair using https and a mismatch between http and https with www that can cause a redirect loop
Illustration: both site addresses must match.

If you cannot log in, set the addresses in wp-config.php, above the line that says to stop editing:

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

Replace the example with your real address. Remove these lines later if you prefer to manage the addresses in the dashboard.

Step 4: Fix your HTTPS and SSL redirects

Make sure only one thing forces HTTPS. It might be a plugin, a rule in .htaccess, a setting at your host or a CDN rule, but it should not be several at once. Turn off the extra ones. Also confirm that your SSL certificate is valid. If your site sits behind a proxy or load balancer, WordPress may not detect HTTPS correctly and keep redirecting. In that case, and only if your host confirms that the proxy sends this header, you can add this to wp-config.php:

if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) {
    $_SERVER['HTTPS'] = 'on';
}

Step 5: Check your CDN SSL mode

A very common cause is a CDN such as Cloudflare set to a flexible SSL mode while your server also forces HTTPS. The CDN talks to your server over HTTP, your server redirects to HTTPS, and the loop begins. Install a valid certificate on your server and set the CDN to a full SSL mode, preferably the strict version. Mode names differ between providers, so check your CDN’s documentation.

Diagram comparing a redirect loop caused by a flexible CDN SSL mode with a server HTTPS redirect, and the fix using a full SSL mode with a valid certificate on the server
Illustration: why the wrong CDN SSL mode causes a loop.

Step 6: Reset the .htaccess file

Connect with FTP or File Manager, show hidden files, and rename .htaccess to .htaccess-old. If the site loads, log in, go to Settings, Permalinks and click Save Changes so WordPress writes a fresh file. If you need the standard rules, you can find them in our guide to fixing the WordPress internal server error.

Step 7: Disable plugins

Rename the plugins folder in wp-content to plugins-off. If the loop disappears, rename it back and deactivate plugins one at a time. Pay special attention to redirect plugins, SEO plugins with redirect features, security plugins, language plugins and caching plugins, because they often add redirect rules.

Step 8: Check your theme and custom code

Switch to a default theme by renaming your active theme’s folder. If the problem disappears, look for redirect code in functions.php or in a custom plugin, especially code that sends visitors to a different address based on conditions.

Step 9: Check your www rules and your host

Choose one version, either with www or without, and make sure your domain settings, hosting redirects, CDN and WordPress all agree. Check the Redirects section of your hosting panel for old rules. If you still see the loop, ask your host to review the server configuration and logs.

How to test your redirects

You can see exactly where a loop happens with a header check. In a terminal, this command follows redirects and prints each response:

curl -I -L https://yourwebsite.com

If the same two addresses keep appearing, you have found the loop. You can also use any online redirect checker tool, and you can inspect the address in Google Search Console with the URL Inspection tool.

Redirect loops and SEO

A redirect loop blocks visitors and search engines alike. If Google cannot reach your pages, it cannot crawl or index them, so a long-lasting loop can hurt your visibility. To stay safe, fix loops quickly, use 301 redirects for permanent moves, avoid long chains of redirects, and keep one canonical version of your site, with the same protocol and the same www choice everywhere. After fixing a loop, check your key pages in Search Console and ask Google to recrawl important URLs. For a deeper look at healthy site structure, read our guide to optimizing WordPress for AI search.

How to prevent redirect loops

  • Use a single method to force HTTPS and a single www choice.
  • Keep your WordPress Address and Site Address identical.
  • Match your CDN’s SSL mode to your server’s certificate.
  • Test redirects after every migration, SSL change or plugin install.
  • Keep redirect rules short and tidy, and delete old ones.
  • Back up before changing redirects, and monitor key pages afterwards.
Checklist of eight habits that help prevent WordPress redirect loops, including one HTTPS redirect method, matching site addresses, one www choice, matching CDN SSL mode, testing redirects, tidy rules, backups and monitoring
Illustration: a redirect loop prevention checklist.

When to ask an expert for help

Ask for help if you cannot reach your files, if the loop appears on a store or a high-traffic site, or if you are unsure about SSL and CDN settings. At wpXpart we fix redirect problems, migrations and SSL setups, and we set up monitoring so issues are caught quickly. See our WordPress maintenance services and WordPress migration service, or hire a WordPress expert.

Frequently asked questions

What is ERR_TOO_MANY_REDIRECTS?

It is the Chrome error code for a redirect loop. The browser followed redirects back and forth until it reached its limit.

Why do I only see the error on some pages?

A specific redirect rule, plugin setting or page-level redirect may be failing. Check redirect plugins and any custom redirects for those URLs.

Will I lose my content?

No. The error comes from redirect settings and does not delete your posts, pages or media.

Can SSL cause the too many redirects error?

Yes. Conflicting HTTPS rules, a missing certificate or a wrong CDN SSL mode are among the most common causes.

Can I fix it if I cannot log in?

Yes. Use FTP or File Manager to reset .htaccess, set the site addresses in wp-config.php or rename the plugins folder.

Is it the same as a 500 error?

No. A 500 error is a general server failure. A redirect loop is specifically a repeating redirect. If you see a 500 error, read our guide to fix the WordPress internal server error.

Does a redirect loop affect SEO?

It can, if it lasts. Search engines cannot reach pages caught in a loop, so fix it quickly and recheck important pages in Search Console.

How long does it take to fix?

Many loops are fixed in minutes once you find the conflicting setting. Server or CDN issues may take longer.

Keep learning with these step-by-step guides from our team.

Conclusion

To fix the too many redirects error in WordPress, clear cookies and caches, match your site addresses, keep only one HTTPS redirect method, set the right CDN SSL mode, reset .htaccess and test plugins. Most loops are caused by two settings doing the same job, so once you remove the conflict, your site comes back immediately.

Still stuck? Start a project with wpXpart and we will break the loop and get your site back online.

Share this article
Article bywpXpart Agency

The wpXpart team designs, builds, speeds up and supports WordPress websites, and shares practical guides along the way.

Need help with your WordPress site?

Tell us about your project and get a clear, written proposal.

Start a Project

Stay tuned with our latest updates

Subscribe for practical WordPress tips and news.

Scroll to Top