On this page
What this issue is
A redirect tells a browser or crawler that a URL has moved and sends it somewhere else. A redirect loop happens when that path never ends: A redirects to B, and B redirects back to A. Or a URL redirects to itself.
Browsers stop after a set number of hops and show an error such as ERR_TOO_MANY_REDIRECTS (Chrome) or 'The page isn't redirecting properly' (Firefox). Googlebot also gives up, so the page cannot be crawled or shown in results.
Common causes: two rules that disagree (one forces www, another removes it), an https rule fighting a CDN or proxy that talks to your server over http, a trailing slash rule that is added and removed, a plugin and a server rule doing the same job, or a login or geo rule that bounces visitors back to the page they came from.
- Ad or search clickVisitor requests /pricing
- Rule A/pricing redirects to /pricing/
- Rule B/pricing/ redirects back to /pricing
- Page loadsNever reached
- Form or checkoutNever reached
The visitor never reaches the page, so every later step is lost.
Why it costs you leads or sales
Visitors who hit a loop see an error page and leave. Paid clicks are wasted, because you pay for the click but nobody sees the landing page. Tracking tags on the page never run either, so the visit is not recorded.
For search, Google cannot fetch a looping URL. Over time it can drop the page from the index, and any links pointing to it stop passing value. If the loop sits on a template, a whole section of the site can disappear. Loops often start after a migration, an SSL change, a plugin update or a CDN setting change, so they can appear without anyone noticing.
Example: illustrative numbers. When the page loops, ad clicks still arrive but no form can be submitted.
How to check if your site has it
Browsers cache redirects and cookies can change behaviour, so test with a tool that shows each hop. Check the key URLs: home page, landing pages, checkout, thank-you pages, and both the www and non-www and http and https versions.
curl -sIL --max-redirs 10 https://example.com/pricing | grep -iE '^(HTTP|location)'
# A loop shows the same Location values repeating,
# then: curl: (47) Maximum (10) redirects followed- Open the URL in a private window. Does Chrome show ERR_TOO_MANY_REDIRECTS?
- Run curl -IL on the http, https, www and non-www versions of the URL.
- Look for the same two Location values alternating.
- Try it with and without a trailing slash.
- Check Google Search Console, Pages report, for 'Redirect error'.
- Check whether the loop only happens for logged-out visitors, one country, or mobile.
How to fix it
The fix is always the same idea: find every rule that redirects the looping URL, then keep one rule and remove or change the others so each URL has a single, final destination.
Map the loop
Run curl -IL on the failing URL and write down each Location. Note which URLs repeat and which status code is used (301, 302).
List every place that can redirect
Check the server config (.htaccess, nginx), the CMS or theme, redirect or SEO plugins, the CDN or proxy (for example SSL mode), and your hosting panel's force-https or www setting.
Keep one rule per job
Choose one canonical version (for example https and non-www) and enforce it in one place only. Delete duplicates.
Check proxy and SSL settings
If you use a CDN that connects to your server over http, a force-https rule on the server loops. Set the CDN to connect over https to your server, or make the server read the X-Forwarded-Proto header.
Retest and clear caches
Purge the CDN and site cache, then run curl -IL again. You want at most one redirect, ending in a 200.
Check the site addresses
Go to Settings > General. WordPress Address and Site Address should match the version you want (https, and www or not). A mismatch with a server rule is a common loop.
Disable redirect and SSL plugins one by one
Deactivate redirect, SEO and SSL plugins (Plugins > Installed Plugins) and test after each. Keep only one tool forcing https.
Reset .htaccess
Rename .htaccess over FTP or your host's file manager, then go to Settings > Permalinks and click Save to create a clean one.
Behind a proxy or CDN
If you use Cloudflare, set SSL/TLS mode to Full or Full (strict) rather than Flexible when your server also forces https.
Review URL redirects
Go to Content > Menus > View URL Redirects (or Online Store > Navigation > URL Redirects, depending on your admin). Look for a redirect whose target redirects back to the source.
Delete the looping entry
Remove or edit the redirect so the target is a live page. Check imported CSV redirects too.
Check domain settings
In Settings > Domains, make sure one domain is primary and others redirect to it, not the other way round.
Look for tag-based redirects
Open Tags and search for Custom HTML tags that set window.location. A tag that redirects on every page load can loop.
Add a condition
Make the trigger fire only on the exact page that needs it and never on the destination page. Better still, move the redirect to the server.
Test in Preview
Use Preview mode and confirm the redirect fires once.
Open 301 redirects
Go to Site settings > Hosting > 301 Redirects. Look for paths that point at each other, or a path that points to itself.
Check the default domain
In Hosting, make sure one domain is set as default (www or non-www) and the other is not also redirecting back via a DNS or CDN rule.
Publish and retest
Publish the site, then run curl -IL again.
Check funnel and website paths
In Sites > Funnels (or Websites), open the step and check its path and any redirect set in the step settings. A step that redirects to its own URL loops.
Check the domain setup
Under Settings > Domains, make sure the domain is connected to the funnel once, and that an outside DNS or CDN proxy is not also forcing a redirect.
Open the redirect manager
Go to Marketing & SEO > SEO Tools > URL Redirect Manager. Look for a rule whose new URL is redirected back to the old one.
Remove the loop
Delete or edit the rule so the target is the live page, then check your Domains settings for a primary domain.
Check URL mappings
Go to Settings > Developer Tools > URL Mappings (or Website > Pages > Website Tools). Look for lines where the target also appears as a source.
Check domain settings
In Settings > Domains, make sure the primary domain is set and DNS records are not pointing to another service that redirects back.
Apache: one rule only
Use a condition so the rule never matches its own destination, as in the snippet below. Remove duplicate RewriteRule lines.
Nginx: avoid return in the wrong block
Put the http to https redirect only in the port 80 server block, and the www redirect in its own server block.
Behind a load balancer
Check X-Forwarded-Proto before redirecting to https.
RewriteEngine On
# Redirect only if the request is not already https
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]server {
listen 80;
server_name example.com www.example.com;
return 301 https://example.com$request_uri;
}
server {
listen 443 ssl;
server_name www.example.com;
# ssl_certificate lines here
return 301 https://example.com$request_uri;
}
server {
listen 443 ssl;
server_name example.com;
# ssl_certificate lines here
# serve the site here, no redirect back to www
}Looping
- Server forces www
- Plugin removes www
- Visitor bounces between the two
- Browser shows ERR_TOO_MANY_REDIRECTS
Fixed
- One canonical version chosen
- Only one place enforces it
- One 301 at most, then a 200
- Page loads, tags run, forms work
How to confirm it's fixed
- curl -IL on the URL ends in HTTP 200 with no more than one redirect.
- All four variants (http, https, www, non-www) end on the same final URL.
- The page loads in a private window and on mobile.
- In Google Search Console, use URL Inspection > Test live URL and see that the page can be fetched.
- The form, checkout or booking button on the page works end to end.
- Validate the fix in the Pages report if it listed 'Redirect error'.
How to prevent it happening again
Loops usually come back after a change: a migration, a plugin update, a new CDN setting, a domain change or a bulk redirect import. Keep a list of where redirects are set so you know every place to check.
- Enforce https and www in exactly one layer.
- Test redirects with curl after every migration, SSL change or plugin update.
- Before importing a redirect CSV, check that no target is also a source.
- Redirect straight to the final URL, not through other redirects.
- Run an automated check on your key landing pages so a loop is caught the same day.
How FunnelGuard handles this
FunnelGuard detects redirect loops today. A robot visitor loads your key pages and journeys on a schedule, from the EU or the US, and follows each step like a real customer. If a page cannot load because it keeps redirecting, that step fails.
A failure is re-checked from a second region before one alert goes out, so a brief glitch does not wake you up. The alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) includes a screenshot and a likely cause. FunnelGuard tells you the page is failing; you still need to find the conflicting rule using the steps above. The Free plan covers 1 site and 2 journeys with daily checks, and no card is needed.
Related behaviour to know
Conflict present
Leads or data lost
The URL bounces between two addresses, the browser shows ERR_TOO_MANY_REDIRECTS and the page never loads.
Switch the cause on to see how two rules that disagree trap the visitor.
Questions people ask
Why is my website showing ERR_TOO_MANY_REDIRECTS?
Your site is sending the browser in a circle: URL A redirects to B and B redirects back to A. The usual causes are conflicting http/https or www/non-www rules, a plugin and a server rule doing the same job, or a CDN set to talk to your server over http. Run curl -IL on the URL to see which addresses repeat.
How do I fix a redirect loop in WordPress?
Check Settings > General so the WordPress and Site Address match the version you want. Then deactivate redirect, SEO and SSL plugins one at a time, and reset .htaccess by renaming it and saving Settings > Permalinks. If you use Cloudflare, avoid Flexible SSL mode when the server also forces https.
How do I find where a redirect loop starts?
Run curl -sIL --max-redirs 10 https://yoursite.com/page and read the Location lines. The two URLs that alternate show the loop. Then look in every layer that can redirect: server config, CMS, plugins, CDN and hosting panel.
Do redirect loops hurt SEO?
Yes. Googlebot cannot fetch a looping page, so it cannot index it, and Search Console can list it as a redirect error. Links to that URL stop helping, and if the loop affects many pages, they can drop out of search results.
Why does the redirect loop only happen for some visitors?
Some loops depend on cookies, login state, country or device. For example a geo or language rule may send people back to the page they came from. Test in a private window, with cookies cleared, and from different regions or user agents.
How many redirects are too many?
Aim for one redirect at most, then a 200 page. Browsers stop after around 20 hops and show an error, and Google follows a limited number before giving up. A loop never ends, so it always fails.
Can Cloudflare cause a redirect loop?
Yes. If SSL/TLS mode is Flexible, Cloudflare connects to your server over http. If your server then forces https, the request loops. Switch to Full or Full (strict) and make sure the server has a valid certificate.
Can I detect redirect loops automatically?
Yes. FunnelGuard runs your key pages and journeys on a schedule, and a page that keeps redirecting fails the check. You get one alert, after a second-region re-check, with a screenshot and a likely cause.
Related issues
- SEO-081Redirect chains of 3+ hopsFix guide
- SEO-083http not redirecting to httpsFix guide
- SEO-085302 temporary redirects used for permanent movesFix guide
- SEO-087Redirects drop query strings (UTMs, gclid)Fix guide
- SEO-089Internal links point to redirecting URLsFix guide
- SEO-097Redirects differ for mobile vs desktop user agentsFix guide