Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Redirect chain slowing your site: how to find and fix it

PRF-067Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A redirect tells the browser: this page has moved, go here instead. A redirect chain happens when the place it sends you is itself another redirect. For example http://example.com/offer goes to https://example.com/offer, which goes to https://www.example.com/offer, which goes to https://www.example.com/offer/.

Why it costs you leads or sales

Visitors from ads are the least patient. They clicked, and now they wait on a blank screen. Slow starts push people to leave before your form or checkout even appears. Chains also add risk: every hop is a chance for something to go wrong, such as a redirect that drops gclid or UTM parameters, a loop, or a certificate error on one of the hosts.

A redirect chain before the page loads
  1. Ad clickhttp://example.com/offer?gclid=abc
  2. Hop 1301 to https
  3. Hop 2301 to www host
  4. Hop 3301 to trailing slash
  5. Page and formVisitor may have left

Each hop is a full request. The visitor sees nothing until the last one finishes.

Wait before first byte by number of redirectsExample numbers
Wait before first byte by number of redirects (example)No redirect: 400 ms; 1 redirect: 750 ms; 2 redirects: 1,100 ms; 3 redirects: 1,450 ms05561,1124007501,1001,450No redirect1 redirect2 redirects3 redirectsms

Example: illustrative timings on a mobile connection, assuming about 350 ms per hop. Your numbers will differ.

How to check if your site has it

You need to see every hop, not only the final page. Browsers hide the middle steps, so use one of these.

Trace the redirect path
  1. Use curl

    Run the command below against the exact URL your ads or emails use. Each HTTP/ line with a 301, 302, 307 or 308 status is one hop.

  2. Or use browser DevTools

    Open DevTools, go to the Network tab, tick Preserve log, load the URL and look at the first requests in the list. Each redirect shows a 3xx status.

  3. Test every variant

    Try http and https, with and without www, with and without a trailing slash, and with your real ad parameters such as ?utm_source=google&gclid=test.

  4. Count hops and check parameters

    More than one redirect is worth fixing. Also check that the final URL still has your UTM and click ID parameters.

Show every redirect hop and its timingbash
curl -sIL -o /dev/null -w '%{url_effective} %{http_code} redirects=%{num_redirects} total=%{time_total}s
' 'http://example.com/offer?utm_source=google&gclid=test'

# To see each hop's headers:
curl -sIL 'http://example.com/offer?utm_source=google&gclid=test' | grep -iE '^(HTTP|location)'

How to fix it

The goal: at most one redirect, and ideally none for the links you control. Choose one canonical address (for example https://www.example.com/offer/) and make everything else jump there directly.

Collapse the chain
  1. Pick one canonical URL

    Decide on https, www or non-www, and trailing slash or not. Write it down.

  2. Update links you control

    Change ad final URLs, email links, social bios, sitemap entries and internal links to the canonical URL so no redirect is needed at all.

  3. Make remaining redirects single-hop

    Every old or variant URL should redirect straight to the canonical URL, not to another redirect. Combine the http and www rules into one.

  4. Remove stacked rules

    Look for the same redirect set in several places: server config, CMS or plugin, CDN and the platform's own domain settings. Keep one.

  5. Keep the query string

    Make sure the redirect passes parameters through, so gclid and UTMs survive.

Where to change it on your platform
  1. Set the site address

    In Settings > General, make WordPress Address and Site Address the exact canonical version (https and your chosen www choice).

  2. Check redirect plugins

    Open any redirect, SEO or security plugin and delete rules that duplicate the server or host rules. Point old URL rules at the final URL.

  3. Check the host and CDN

    Many hosts and CDNs have a force-HTTPS option. Use one layer for https, not several.

nginx: one hop from http or non-www to canonical httpsnginx
server {
  listen 80;
  listen 443 ssl;
  server_name example.com www.example.com;
  # ssl_certificate lines here

  # Send everything that is not the canonical host/scheme in ONE hop
  if ($host != "www.example.com") { return 301 https://www.example.com$request_uri; }
  if ($scheme = http) { return 301 https://www.example.com$request_uri; }
}
Same click, fewer hops

Before

  • http to https to www to trailing slash
  • Three redirects before the page starts
  • Ad URL is not the real address

After

  • Ad links straight to the canonical URL
  • Zero redirects for ad traffic
  • Old variants still redirect, in one hop

How to confirm it's fixed

Confirmation checks
  • curl on your ad URL shows redirects=0 (or 1 at most for old variants).
  • http, https, www and non-www variants each reach the final page in one hop.
  • The final URL still contains utm_ and gclid parameters.
  • No hop goes to a different domain you did not expect, such as a shortener.
  • The page starts loading noticeably sooner on a mobile connection in DevTools throttling.

How to prevent it happening again

Habits that keep redirects short
  • Keep a single list of canonical URLs for each landing page.
  • Before launching a campaign, paste the ad URL into curl and check the hop count.
  • When you move or rename a page, update old redirects to point at the new final URL, not the previous one.
  • After changing domain, SSL, CDN or a redirect plugin, retest every URL variant.
  • Avoid putting a link shortener in front of paid landing pages.

How FunnelGuard handles this

FunnelGuard detects this today. When its robot visitor runs your journeys, a redirects check looks at the redirects between the starting URL and the page that finally loads, and flags a chain with more than one hop. A failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.

Questions people ask

What is a redirect chain?

A redirect chain is when one URL redirects to another URL that also redirects, so the browser goes through two or more hops before the real page loads. Each hop is a separate request, which slows the page and adds failure points.

How many redirects are too many?

Aim for zero redirects on links you control, such as ads and emails, and at most one for old or variant URLs. Two or more hops is a chain worth fixing, especially for paid traffic on mobile.

How do I check a redirect chain?

Run curl -sIL on the URL and look at each HTTP status and Location header, or open the DevTools Network tab with Preserve log on. Test http, https, www, non-www and the real ad URL with its parameters.

Do redirects slow down my website?

Yes. Every redirect adds a full round trip before the page starts to load, and on a different host it can also add a new DNS lookup and secure connection. A few hundred milliseconds per hop on mobile is common.

Why is my landing page slow to start even though the server is fast?

The time before the first byte includes any redirects, not just server speed. A fast server behind a three-hop chain still feels slow, so trace the path with curl before tuning the server.

Do redirects remove gclid and UTM parameters?

They can. If a redirect rule rebuilds the URL without the query string, the parameters are lost and your ad conversions may be attributed wrongly. Check the final URL after the redirect and make sure the rule keeps the query string.

Should I use a 301 or a 302 redirect?

Use a 301 (or 308) for permanent moves such as http to https or a changed URL, and 302 (or 307) only for temporary ones. Either way, send visitors to the final URL in one hop.

Can FunnelGuard tell me if I have a redirect chain?

Yes. Its redirects check flags a chain of more than one hop on the journeys it runs and sends one alert with a screenshot and a likely cause after a second-region re-check.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: redirects matcher.

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.