WordPress Too Many Redirects Error: How to Fix

WordPress too many redirects? Check your site addresses with our free tool, then fix Cloudflare, plugin or wp-config loops without losing any content.

Share this post
7 min read

Last updated December 2, 2026

Your browser says “This page isn’t working” and “redirected you too many times”. Your WordPress site, or just wp-admin, will not load.

A redirect loop means two rules keep sending visitors back and forth. Page A says go to B, and B says go back to A.

This guide helps you find which two rules are fighting, then remove one safely.

Key Takeaways

  • Try a private window first. If it works, clear cookies for your site.
  • WordPress Address and Site Address must match, both https and the same www form.
  • Cloudflare Flexible mode loops when your host also forces https, Cloudflare says.
  • If you cannot reach wp-admin, set WP_HOME and WP_SITEURL in wp-config.php.
  • A redirect or security plugin can cause the loop. Disable it by renaming its folder.
Safe to try. None of these steps delete posts. Make a backup of wp-config.php before you edit it.

Find Your Fix

Answer two questions. The finder lists the rules most likely to be fighting.

Redirect loop fix finder

Answer two questions. The finder points to the rules most likely fighting. It runs in your browser only.

Digieh tool. Based on WordPress and Cloudflare docs, read December 2, 2026.

Why Does WordPress Say Too Many Redirects?

Browsers follow a redirect, then another, then give up after a limit. They show ERR_TOO_MANY_REDIRECTS when the chain never ends.

Rule oneRule twoResult
WordPress address set to httpHost forces httpsLoop on every page
Cloudflare Flexible modeHost forces httpsLoop on every page
Site address uses wwwHost removes wwwLoop on every page
Redirect plugin rulePage points to itselfLoop on one page

Based on Cloudflare docs on too many redirects and WordPress developer docs. Pairs are Digieh’s reading.

1 sideRemove one side of the loop, not both. Removing both can leave your site on plain http.

Does a Private Window Work?

Open your site in a private or incognito window. This skips your saved cookies and cache.

  • It works in private: your browser kept an old redirect. Clear cookies and site data for your domain.
  • It fails in private too: the site itself has a loop. Keep reading.

Clear cookies for your site only. Clearing everything signs you out of every website.

In Chrome, click the icon left of the address, open site settings and choose Delete data. Other browsers have a similar option.

Also try a second browser or your phone on mobile data. If those work, the problem is local to your computer.

Check Your WordPress Address and Site Address

These two settings live in Settings, General. WordPress’s General settings documentation explains each one.

Site address mismatch checker

Copy both addresses from Settings, General, or from wp-config.php if they are set there. Paste them below.

Results appear here.

Digieh tool. Runs in your browser only. Nothing is sent to us.

A mismatch, such as http in one and https in the other, is a classic loop. So is www in one and no www in the other.

Locked out of wp-admin? Use the wp-config.php method below. It overrides both settings without logging in.

Free updates

Join the Digieh list

Be the first to know when our weekly brief launches.

No spam. Unsubscribe anytime. Read our Privacy Policy.

How Do You Fix the Loop in wp-config.php?

WordPress developer docs show two lines you can add to wp-config.php. Replace example.com with your domain.

define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' );
  1. Open your host’s file manager and find wp-config.php in the main WordPress folder.
  2. Download a copy as a backup.
  3. Add the two lines above the line that says to stop editing.
  4. Save the file and reload your site.

WordPress docs give three warnings. Include https:// and no trailing slash. You cannot edit these on the General page anymore. Multisite needs a database edit instead.

What caused your WordPress redirect loop?

  • Address mismatch
  • Cloudflare setting
  • A plugin
  • Old browser cookies
  • Not sure

Is Cloudflare Causing the Loop?

Cloudflare’s troubleshooting page names a very common cause. In Flexible mode, Cloudflare talks to your host over plain http.

If your host then redirects http to https, the visitor bounces forever. Cloudflare suggests two fixes:

  • Change the encryption mode to Full or higher. Your host needs its own certificate for this.
  • Or remove the https redirect on your host.

Editor’s Note

This guide is accurate as of Digieh check. Switching to Full fixes the Flexible mode loop. Cloudflare notes it does not fix loops where your host sends https back to http.

Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.

Also check Cloudflare redirect rules and Page Rules. Cloudflare warns that conflicting rules can form a loop too.

How Do You See the Redirect Chain?

Your browser can show every hop in the loop. This tells you which address keeps bouncing.

  1. Open your site in Chrome or Edge.
  2. Press F12 to open developer tools, then choose the Network tab.
  3. Tick Preserve log and reload the page.
  4. Look at the first few rows with status 301 or 302 and their Location value.

If you see http and https swapping, it is an https loop. If you see www appearing and disappearing, it is a www loop.

Could Your Host Be Forcing a Redirect?

Many hosts add an https redirect in their control panel or in .htaccess. If WordPress or Cloudflare does the opposite, they fight.

  • Look for a Force https option in your hosting panel.
  • Check .htaccess for rules that mention https or www above the WordPress block.
  • Ask your host support which redirects they apply.

Keep only one place in charge of https and www. Usually the host or Cloudflare is the best choice.

Is WordPress Having Issues Right Now?

A redirect loop on your site is almost never a WordPress.org outage. Your site runs on your own host.

If several sites on the same host loop at once, the host may have changed something. Check its status page or contact support.

Can a Plugin Cause Too Many Redirects?

Yes. Redirect, security, https and caching plugins all add redirect rules. One wrong rule is enough.

  1. Open your host’s file manager.
  2. Go to wp-content, then plugins.
  3. Rename the folder of the plugin you changed last, for example add -off to the name.
  4. Reload your site. If it works, that plugin caused the loop.

Renaming the whole plugins folder disables every plugin at once. Our WordPress critical error guide explains that method.

Why Is Only wp-admin Looping?

An admin only loop often follows an https move. Old login cookies point to the http address.

  • Clear cookies for your site and log in again.
  • Check that the WordPress Address uses https.
  • Disable any login protection or security plugin for a test.

If wp-admin shows a blank page instead, see our WordPress white screen guide.

What If Only One Page Loops?

A single looping page usually has its own redirect rule. Check your redirect plugin for a rule that points the page to itself.

Also check whether the page slug matches an old redirect source. A redirect from the old slug to the new one can loop if both are the same.

Redirects also matter for Google. Our page with redirect guide explains how Search Console reports them.

Try this today. Write down your exact site address, with or without www, and use that form everywhere.

Stuck on the login page instead? Our WordPress login loop guide matches each symptom to a fix.

Padlock missing after the move to https? Scan your page with our WordPress mixed content guide.

Test Yourself

Your site works in a private window but loops in your normal browser. What should you do?

  1. Clear cookies for your site
  2. Reinstall WordPress
  3. Delete all plugins

If a private window works, your browser kept an old redirect or cookie.

Cloudflare is in Flexible mode and your host forces https. What happens?

  1. A redirect loop
  2. Faster loading
  3. Nothing

Cloudflare says Flexible mode talks to your host over http, so a host https redirect bounces forever.

Frequently Asked Questions

Is the too many redirects error dangerous?

No. Your content is safe. Visitors just cannot reach it until the loop is fixed.

Should my site use www or not?

Either works. Use the same form in both address settings and everywhere else.

Can I undo the wp-config.php change?

Yes. Remove the two lines and the General settings work again.

Why did this start after adding a certificate?

Your addresses may still say http while the host now forces https.

Does clearing cookies log me out?

Only from the sites you clear. Clear cookies for your domain only.

Conclusion

Test a private window first. Then compare your two site addresses, check Cloudflare’s encryption mode and disable recent redirect plugins. If wp-admin is locked, set WP_HOME and WP_SITEURL in wp-config.php with https and no trailing slash.

Editor’s Note

This guide is accurate as of December 2, 2026. We checked WordPress developer documentation and Cloudflare troubleshooting docs on that date.

Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.

Keep exploring

Your next read is waiting

Found this useful?

Share this post
Avatar photo

Syed Wasif Raza

Syed Wasif Raza is the founder and editor of Digieh. He writes about health, food, lifestyle, news and sports in plain, easy English. Every guide he publishes is checked against official sources such as government and health agency pages. Connect with him on LinkedIn.

Articles: 931

Leave a Reply

Your email address will not be published. Required fields are marked *