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.
- Ad clickhttp://example.com/offer?gclid=abc
- Hop 1301 to https
- Hop 2301 to www host
- Hop 3301 to trailing slash
- Page and formVisitor may have left
Each hop is a full request. The visitor sees nothing until the last one finishes.
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.
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.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.
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.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.
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.
Pick one canonical URL
Decide on https, www or non-www, and trailing slash or not. Write it down.
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.
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.
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.
Keep the query string
Make sure the redirect passes parameters through, so
gclidand UTMs survive.
Set the site address
In Settings > General, make WordPress Address and Site Address the exact canonical version (https and your chosen www choice).
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.
Check the host and CDN
Many hosts and CDNs have a force-HTTPS option. Use one layer for https, not several.
Set the primary domain
In Settings > Domains, set your primary domain so other domains redirect to it. Shopify handles https itself.
Tidy URL redirects
In Content > Menus > View URL Redirects (or Online Store > Navigation > URL Redirects), make sure old paths point to the final product or page URL, not to another redirected path.
Set the default domain
In Project settings > Hosting, choose the default domain so the other version redirects to it. Turn on SSL.
Fix 301 redirects
In Hosting > 301 redirects, point each old path at the final path, not another redirected one.
Set the primary domain
In Domains, set the primary domain so other connected domains forward to it.
Review URL redirects
In SEO > URL Redirect Manager, make each old URL point to the final live URL.
Set the primary domain
In Settings > Domains, set the primary domain and keep SSL on.
Review URL mappings
In Settings > Developer Tools > URL Mappings, make sure each line redirects to the final URL, not another mapped one.
Check the funnel domain
In the funnel or website settings, use one connected domain and link ads to its exact live path.
Review path redirects
If you use URL redirects in Sites settings, point them straight to the final page URL.
Merge rules into one
Use a single rule that sends http and non-canonical hosts directly to the canonical https URL. See the nginx example below.
Remove duplicate layers
Check the load balancer, CDN and app code for the same redirect and keep only one.
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; }
}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
- 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
- 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.
Related issues
- PRF-068http to https redirect missing or slowFix guide
- PRF-069www/non-www double redirectFix guide
- PRF-050TTFB over 800 msFix guide
- PRF-054Cache busted by UTM/gclid query params so ad traffic is never cachedFix guide
- PRF-070DNS lookup slow or failing intermittentlyFix guide
- PRF-071TLS handshake slow / old TLS versions onlyFix guide