A website that keeps bouncing between URLs never reaches the page a visitor requested. The ERR_TOO_MANY_REDIRECTS WordPress error means the browser followed repeated redirects—often between HTTP and HTTPS or two versions of the domain—until it stopped the cycle. Although Chrome may describe the page as having redirected too many times, clearing cookies alone will not repair a server-side configuration loop. The safest solution is to identify exactly where the redirects lead and then correct the layer responsible.
Before changing anything, create a current database backup and copies of wp-config.php, .htaccess, and relevant web-server or proxy configuration. Change one item at a time so that you can reverse it if the site behaves differently.
What ERR_TOO_MANY_REDIRECTS means
A redirect is an HTTP response—commonly 301, 302, 307, or 308—with a Location header telling the client to request another URL. A loop occurs when that destination redirects back to an earlier address. A typical example is:
http://example.comredirects tohttps://example.com.- A proxy contacts the origin over HTTP, and WordPress believes the request is insecure.
- WordPress redirects to HTTPS again, repeating the same request indefinitely.
The ERR_TOO_MANY_REDIRECTS Chrome message is therefore a symptom, not a diagnosis. Firefox and other browsers use different wording for the same redirect-chain failure.
Use this safe diagnostic sequence
1. Rule out browser-specific state
Open the URL in a private window and test another browser or network. Clear cookies for the affected domain, especially if only /wp-admin/ or the login page loops. WordPress authentication cookies can cause a login-specific problem, but browser cache cannot fix contradictory redirects generated by the server.
2. Trace the redirects before editing WordPress
Inspect the Network panel in browser developer tools, or run these commands from a terminal:
curl -I https://example.com/
curl -IL --max-redirs 10 https://example.com/The first command displays the initial response headers. The second follows the chain. Record each status code and Location value. Repeated switches between HTTP and HTTPS point toward SSL or proxy detection. Switching between www and the bare domain suggests competing canonical-domain rules. A loop involving wp-login.php usually indicates cookies, site URL values, or an authentication plugin.
An online redirect tracing tool can provide the same evidence, but avoid submitting private staging URLs or URLs containing login tokens. Also test one static file and one WordPress page. If only dynamic pages loop, WordPress or a plugin is more likely responsible; if every request loops, inspect the CDN or web server first.
3. Temporarily bypass cache and proxy layers
Purge page, server, and CDN caches after a configuration correction. When possible, test the origin directly using a hosts-file entry or hosting preview method. Do not disable security controls on a production site merely to test. The goal is to learn whether the redirect originates at the CDN, web server, or WordPress layer.
Correct WordPress home and siteurl values
Mismatched WordPress Address and Site Address values are among the most common causes of a WordPress redirect loop, particularly after enabling SSL or moving domains. Both values should normally use the public canonical scheme and hostname, such as https://www.example.com. They can differ for specialized installations, but that should be intentional.
Through wp-admin
If the dashboard opens, go to Settings > General. Confirm that WordPress Address (URL) and Site Address (URL) use the correct HTTPS scheme, hostname, and subdirectory. Do not add a trailing path unless WordPress is actually installed or served there.
Through phpMyAdmin
Open the site database, locate the options table—often wp_options, although the prefix may differ—and edit the home and siteurl rows. Back up the database first and verify that you are editing the correct installation.
With WP-CLI
wp option get home
wp option get siteurl
wp option update home https://example.com
wp option update siteurl https://example.comRun WP-CLI from the WordPress directory with the appropriate system account. For a multisite network, URL storage and commands differ, so review the network configuration rather than applying single-site instructions blindly.
In WordPress wp-config.php
If database editing is unavailable, temporarily define the values above the line that tells you to stop editing:
define('WP_HOME', 'https://example.com');
define('WP_SITEURL', 'https://example.com');These constants override the corresponding database options, so wp-admin may display them as uneditable. Remove the definitions after repairing the stored values if you do not want configuration-file overrides. Following a migration, use a serialization-aware replacement tool for URLs embedded elsewhere; the official WordPress migration guidance explains the broader considerations.
Fix conflicting WordPress HTTPS redirects
A site may contain simultaneous HTTP-to-HTTPS rules in a hosting panel, CDN, SSL plugin, redirect plugin, .htaccess, and WordPress itself. One HTTPS redirect is enough. Trouble begins when another layer interprets the forwarded request as HTTP or enforces a different hostname.
Temporarily deactivate SSL and redirect plugins by renaming their directories under wp-content/plugins when wp-admin is inaccessible. If the loop stops, restore each directory and review its HTTPS, canonical-domain, and login rules. Do not leave a security or SSL plugin disabled without understanding what protections it supplied.
Also inspect must-use plugins in wp-content/mu-plugins and host-level redirect settings. Standard plugins can be disabled from the database or filesystem, but must-use plugins load automatically.
Cloudflare and reverse-proxy redirect loops
A Cloudflare redirect loop commonly appears when SSL/TLS mode is set to Flexible. The visitor connects to Cloudflare with HTTPS, but Cloudflare contacts the origin using HTTP. If the origin forces HTTP requests to HTTPS, it sends Cloudflare back to the same public HTTPS URL, and the cycle repeats.
For an HTTPS-capable origin, use Full (strict) whenever possible. It encrypts the origin connection and validates the origin certificate. Full mode encrypts the connection without the same certificate validation, while Flexible does not use HTTPS to the origin. Cloudflare documents these distinctions in its Full (strict) SSL guidance. Install a valid public or Cloudflare Origin CA certificate before selecting strict mode.
Check Cloudflare Redirect Rules, Bulk Redirects, Always Use HTTPS, and origin rules for competing hostname or scheme changes. These features can coexist when aligned, but duplicated or opposing rules create loops.
Other load balancers and reverse proxies can cause the same problem if WordPress cannot detect the visitor’s original protocol. A trusted proxy usually sends X-Forwarded-Proto: https. The server or application must interpret that header correctly before WordPress performs canonical redirects. Some controlled environments use logic similar to:
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) {
$_SERVER['HTTPS'] = 'on';
}Do not trust forwarded headers from arbitrary internet clients. Configure this only when requests reach the origin through known, trusted proxies; preferably handle protocol detection in the web server or hosting platform.
Troubleshoot WordPress .htaccess redirects safely
On Apache and compatible servers, download a backup of .htaccess, then rename it temporarily. If the site loads, a custom redirect or malformed rewrite rule is responsible. Restore a clean WordPress rewrite configuration by visiting Settings > Permalinks and saving, then reintroduce necessary redirects individually.
Place deliberate HTTP-to-HTTPS or domain-canonicalization rules before WordPress’s front-controller block, and avoid rules that reverse one another. Nginx does not process .htaccess; inspect its server blocks or ask the host to review them. A hosting control panel may also regenerate rules, so confirm where the authoritative configuration lives.
When only part of the site loops
Only wp-admin or wp-login.php loops
Clear domain cookies, confirm home and siteurl, and verify that HTTPS is detected correctly. Disable login, membership, SSO, and security plugins temporarily. Check whether an admin-only rule forces a hostname different from the public site. A WordPress login redirect loop can also occur when cookies are scoped to an obsolete domain after migration.
Only the public website loops
Test a static asset and disable caching, SEO-redirect, language, and canonicalization plugins. Review page-level redirects and theme code. If wp-admin works, save permalink settings only after backing up .htaccess; doing so may overwrite intentional custom rules.
Troubleshooting decision table
| Observed pattern | Likely cause | First check |
|---|---|---|
| HTTP and HTTPS alternate | Proxy detection or Flexible SSL | SSL mode and forwarded-protocol headers |
| www and non-www alternate | Conflicting canonical rules | WordPress URLs, CDN, and server redirects |
| Loop began after migration | Old home/siteurl or domain data | Database options and wp-config constants |
| Only login or admin loops | Cookies, URL mismatch, or auth plugin | Site cookies and login-related plugins |
| Loop stops without .htaccess | Apache rewrite conflict | Rebuild rules and add redirects one at a time |
| Loop stops when CDN is bypassed | Edge rule or SSL mismatch | CDN redirect rules and origin encryption |
How to prevent another redirect loop
- Choose one canonical HTTPS hostname and apply it consistently.
- Keep the origin certificate valid and use authenticated HTTPS between proxy and origin.
- Document which layer owns HTTPS and hostname redirection.
- Check
homeandsiteurlimmediately after a migration or staging deployment. - Test changes with
curl -Ibefore purging every cache. - Maintain recoverable database and configuration backups.
Frequently asked questions
It can fix a loop caused by stale login or domain cookies, particularly around wp-admin. It will not resolve conflicting HTTP-to-HTTPS, proxy, CDN, or server rules. If private browsing produces the same redirect chain, investigate the server response headers.
Why did too many redirects appear after SSL was enabled?
The site may have retained HTTP values, gained duplicate HTTPS rules, or failed to recognize HTTPS behind a proxy. Compare the WordPress URLs, origin certificate setup, CDN SSL mode, and each redirect in the response chain.
Can I fix the error without wp-admin?
Yes. You can correct home and siteurl through phpMyAdmin, WP-CLI, or temporary WP_HOME and WP_SITEURL constants. Plugins can be isolated through the filesystem, and .htaccess can be renamed after creating a backup.
Should Cloudflare SSL be set to Flexible, Full, or Full (strict)?
Use Full (strict) when the origin has a valid compatible certificate. Flexible commonly conflicts with origin-level HTTPS enforcement because Cloudflare connects to the origin over HTTP. Full encrypts the origin connection but does not provide the certificate validation of Full (strict).