CometWebSEO / Redirects

Redirect chains on 1,000 popular sites

Maciej Zmitrukiewicz · Research pack for Redirect chains: you're probably doing it wrong

This is the material behind the article. I drew 1,000 domains from the Tranco list of the 100,000 most popular sites and checked how many redirects each one makes you go through before its homepage loads.

What I checked

For every domain a script typed in four versions of the address, http://, http://www., https:// and https://www., and followed each redirect one by one, noting its code and how long it took. 683 domains served a page on at least one version. The rest were CDNs, API servers and servers that blocked the script, so every share in the article is out of 683.

For the 124 sites that served two homepages, a second pass read the rel=canonical tag on each version.

The pack doesn't name the sites. Each one has a neutral id from site-0001 to site-1000, and every address keeps only what the results depend on: http or https, www or not, and whether a redirect stays on the same site.

Results

What I countedResult
Domains drawn / domains that served a page1,000 / 683
Sites with 2+ redirects on at least one version of the address327 of 683
Worst version per site: 0 / 1 / 2 / 3+ redirects66 / 290 / 279 / 48
Most common chain: protocol first, then www190 of 483 chains with 2+ redirects
Median time spent on redirects: 1 / 2 / 3+ redirects0.36 s / 0.76 s / 1.39 s
Temporary redirects (302 or 307) on the HTTP-to-HTTPS step137 of 1,219
Sites serving two homepages, www and bare124 of 683 (85 with no canonical)
Sites where http:// loads without moving to HTTPS60 of 683
Redirect loops4 of 4,000 address checks

Does CometWeb Insight catch these chains?

I added 12 of these domains to Insight and ran its Crawl. The first run showed a gap: Insight only followed the chain from http:// plus the bare domain, so it missed chains that start on another version, which in the full sample would have been 102 of the 327 sites with a chain. After I fixed that, Insight counted the same redirects as my script on all 11 domains it could reach.

Redirects before the page loads, in the order http:// · http://www. · https:// · https://www.:

SiteScriptInsightWhat Insight reported
site-08931 · 2 · 0 · 11 · 2 · 0 · 1chain on http://www.
site-00441 · 2 · 0 · 11 · 2 · 0 · 1chain on http://www.
site-04591 · 3 · 0 · 21 · 3 · 0 · 2chains on http://www. and https://www., plus a drop from HTTPS to HTTP
site-03462 · 1 · 1 · 02 · 1 · 1 · 0chain on http://
site-03172 · 1 · 1 · 02 · 1 · 1 · 0chain on http://
site-04180 · 0 · 0 · 00 · 0 · 0 · 0every version answers directly and points its canonical at the bare HTTPS address
site-05551 · 1 · 0 · 01 · 1 · 0 · 0two homepages, www and bare, with no canonical
site-07030 · 0 · 0 · 00 · 0 · 0 · 0http:// loads without moving to HTTPS; a second homepage on www
site-06411 · 1 · 0 · 01 · 1 · 0 · 0two homepages, www and bare, with no canonical
cometweb.io (my own site)1 · 1 · 0 · 11 · 1 · 0 · 1control, nothing to report
site-08991 · 1 · 1 · 01 · 1 · 1 · 0control, nothing to report
site-00653 · 3 · 2 · 3–the server refused Insight's crawler, so Insight reported it as not measured

One difference is deliberate. My script counts every http:// address that loads without moving to HTTPS. Insight reports that only when the page also lacks a canonical pointing at the HTTPS address, which is why site-0418 shows nothing.

What this data can't tell you

Files

To build your own list, save the domains you care about (your sites, your clients, your competitors) as top-1m.csv with one rank,domain line each, then run python3 measure.py with the number of domains, python3 canonical_check.py and python3 summarise.py.

Back to the article