Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Redirect loop on CTA target: how to find and fix it

CNV-110High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A redirect tells the browser to go to a different URL. A redirect loop is when URL A sends visitors to B and B sends them back to A, or A sends them to A again. The browser follows a limited number of hops, then stops and shows an error such as ERR_TOO_MANY_REDIRECTS (Chrome) or 'The page isn't redirecting properly' (Firefox).

Why it costs you leads or sales

Where the funnel breaks
  1. Visitor clicks CTAButton link is correct
  2. Redirect A to Be.g. http to https
  3. Redirect B to AAnother rule sends it back
  4. Form or checkoutNever loads
  5. Lead or saleNot recorded

The click works, but the destination loops, so every later step is lost.

What a loop does to a CTAExample numbers
What a loop does to a CTA (example)Clicks on CTA: 100 clicks; Page loaded: 0 clicks; Form submitted: 0 clicks0387710000Clicks on CTAPage loadedForm submittedclicks

Example: of 100 CTA clicks, none reach the form while the loop is live.

How to check if your site has it

Test the CTA target
  1. Open a private window

    Clear cookies or use incognito so cached redirects and logged-in sessions don't hide the problem.

  2. Click the real CTA

    Test on desktop and on a phone, and from the real source (ad, email, social link) if you can.

  3. Watch for the error

    Look for ERR_TOO_MANY_REDIRECTS or 'page isn't redirecting properly'.

  4. Trace the hops

    Run curl -IL on the URL, or open the browser's DevTools Network tab with 'Preserve log' on, and see which URLs repeat.

Follow redirects and stop after 10 hopsbash
curl -sIL --max-redirs 10 https://example.com/contact | grep -iE '^(HTTP|location)'
Click leads to an error page

The visitor clicks, bounces between two URLs and sees an error.

How to fix it

Common loop causes
CauseWhat happensWhere to look
HTTPS forced twiceServer forces https, CDN or proxy talks to server over http and it redirects againCDN SSL mode, server config
www vs non-wwwOne rule adds www, another removes itDomain settings, .htaccess, plugins
Trailing slashOne rule adds a slash, another removes itServer rules, SEO plugins
Plugin plus server ruleTwo tools redirect the same URLRedirect plugins, hosting panel
Redirect to itselfRule's target equals its sourceRedirect manager
Fix by platform
  1. Check Settings > General

    WordPress Address and Site Address should use the same host (www or not) and https.

  2. Deactivate redirect and SEO plugins

    Turn off redirect, SSL and caching plugins one by one and retest the CTA URL after each.

  3. Review .htaccess

    Look for duplicate RewriteRule lines forcing https or www, and remove the duplicate. Back up the file first.

  4. Check behind a CDN or proxy

    If you use Cloudflare, set SSL mode to Full or Full (strict), not Flexible, when the origin also forces https.

Apache: force https once, behind a proxy-safe checkhtaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]

How to confirm it's fixed

Confirm the fix
  • curl -IL ends in a 200 response with no repeating location values
  • The CTA page loads in a private window on desktop and mobile
  • Both http and https, and www and non-www, reach the page in one hop
  • The URL with UTM or gclid parameters also loads
  • A test form submission or checkout start works end to end
CTA target before and after

Loop

  • Click leads to ERR_TOO_MANY_REDIRECTS
  • Two rules send the URL back and forth
  • No form or checkout

Fixed

  • One redirect at most to the final URL
  • Page loads with a 200 status
  • Form and tracking work

How to prevent it happening again

Prevention habits
  • Keep one place for redirects (plugin, hosting panel or server config) and document it
  • Retest key CTA URLs after changing domains, SSL, CDN settings, plugins or themes
  • Link buttons to final URLs, not to old addresses that rely on redirects
  • Test with and without parameters and from mobile
  • Monitor your key journeys on a schedule so you hear about loops before customers do

How FunnelGuard handles this

Questions people ask

Why does my button say ERR_TOO_MANY_REDIRECTS?

The page the button links to keeps redirecting in a circle, so the browser gives up after a set number of hops. It is usually caused by two rules that conflict, such as one forcing https and another sending traffic back to http, or a plugin plus a server rule.

How do I find what is causing a redirect loop?

Run curl -IL on the URL or watch the Network tab in browser DevTools with 'Preserve log' on. The repeating location values show which URLs bounce back and forth. Then look in your redirect plugin, platform redirect manager, server config and CDN for the rules that match them.

Why does the redirect loop only happen for some visitors?

Loops can depend on cookies, device, country, login state or URL parameters. Cached redirects in your own browser can also hide or cause the problem. Test in a private window, on mobile, and with UTM parameters added.

Can Cloudflare cause too many redirects?

Yes. If Cloudflare's SSL mode is Flexible but your origin server also forces https, the two keep redirecting each other. Switching to Full or Full (strict) with a valid certificate on the origin usually stops it.

Does clearing cookies fix a redirect loop?

It can for you, if a bad cookie or cached 301 caused it, but it does not fix the site for your visitors. If the loop is in a rule or setting, it will return for everyone, so find and fix the rule.

Will a redirect loop hurt my ad campaigns?

If an ad sends people to a looping page, you pay for clicks that end in an error and get no leads. Pause the ad or point it at a working URL until the loop is fixed.

How do I stop redirect loops coming back?

Keep redirects in one place, link buttons to final URLs, and retest key pages after changes to domains, SSL, CDN or plugins. A scheduled journey check can alert you if a CTA target starts looping.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: redirects.

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.