Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Redirect loop (ERR_TOO_MANY_REDIRECTS): how to find and fix it

SEO-082High impactDetectedBy FunnelGuardPublished Updated
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.

How a redirect loop traps a visitor
  1. Ad or search clickVisitor requests /pricing
  2. Rule A/pricing redirects to /pricing/
  3. Rule B/pricing/ redirects back to /pricing
  4. Page loadsNever reached
  5. 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.

Leads from a landing page before and after a loop startsExample numbers
Leads from a landing page before and after a loop starts (example)Before the loop: 40 leads per week; First week with loop: 3 leads per week; After the fix: 39 leads per week0153140339Before the loopFirst week with loopAfter the fixleads per week

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.

Follow redirects and show each hopbash
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
Quick checks
  • 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.

Fix a redirect loop
  1. 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).

  2. 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.

  3. Keep one rule per job

    Choose one canonical version (for example https and non-www) and enforce it in one place only. Delete duplicates.

  4. 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.

  5. 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.

Where to look on your platform
  1. 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.

  2. 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.

  3. 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.

  4. 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.

Apache: force https once, safely behind a proxyhtaccess
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]
Nginx: separate server blocks, no self-redirectnginx
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
}
Rules before and after

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

Confirmation checks
  • 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.

Habits that help
  • 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.

Toggle the conflicting ruleInteractive
Two rules redirect the same URL

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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.