AIScan data study cover: headline 'Two hosts, one page' with the figure 38.2% serving a duplicate www host, from 696 sites measured.
AIScan data study cover: headline 'Two hosts, one page' with the figure 38.2% serving a duplicate www host, from 696 sites measured.
AI Readiness

Duplicate www and apex Hosts: 31.2% of 769 Domains Fail the Canonical Check

Corrected 17 Nov 2026: 240 of 769 domains serve a duplicate www copy (31.2%), not 38.2%. 72 of 80 subdomains got a false www verdict. Counts and fix. (E4)

7 Oct 2026 26 min read
#corpus study#canonical host#HTTPS#redirects#HSTS

This guide covers E4 · Discoverability, D1 · Discoverability, D2 · Discoverability.

Table of contents

On 7 October 2026 we queried the AIScan database for check E4, the canonical host and HTTPS check, across 696 distinct hosts. 405 pass. The other 291 are partial, and not one fails outright. The partials share a single cause: 266 hosts (38.2%) answer on both the bare domain and the www. host and serve a full copy from each, and 105 hosts (15.1%) leave plain http:// without an upgrade to HTTPS. An agent that follows a link to either duplicate gets a valid page. It also gets a second URL for every page on the site, and nothing in the response says which one is the real one.

Correction, updated 17 November 2026. The 266 duplicates in the 7 October table are too many. Check E4 reports "www. serves its own copy" even when the www. name does not answer at all, and it tests a www. prefix on hosts that are already a subdomain. Re-split, the 7 October corpus has 212 duplicates among 637 domains (33.3%), not 266 of 696, and today's corpus has 240 of 769 (31.2%). The recount, the platform shares and our own test hosts are in Corrected counts, 17 November 2026. The fix advice for bare domains is unchanged.

This post is the adoption count behind that number, broken down by redirect behaviour, HSTS and platform, with the limits of the measurement stated before the tables. It then walks through the fix for nginx, Apache, a CDN rule and WordPress, and shows how to verify it with AIScan (check:E4) or by hand with curl.

Quick summary

QuestionAnswer from 696 hostsWhat to do
How many sites pass E4?405 (58.2%)Keep the redirect rules you have
How many get partial credit?291 (41.8%), zero hard failsFix the two causes below
Most common problemBoth apex and www. serve their own copy: 266 hosts (38.2%) as published; 212 of 637 domains (33.3%) once subdomains are removedPick one host, 301 the other to it
Corrected figure today (17 Nov 2026)240 of 769 domains (31.2%); 72 of 80 subdomains get a false or untestable www. verdictIgnore E4's www. point on a subdomain until the check is fixed
Second problemhttp:// does not upgrade to HTTPS: 105 hosts (15.1%)Add a site-wide 301 from HTTP to HTTPS
Worst caseHTTP stays on HTTP and the two hosts duplicate: 83 hosts (11.9%)Both fixes, in that order
Does HSTS change the verdict?No. 187 hosts pass without itAdd it after the redirects, not instead of them
Platform with the most duplicates (100+ hosts)Hosts with no detected platform (51.3%), then Next.js (41.3%)Check your host or CDN redirect settings

Expert recommendation: Google's canonicalization documentation lists redirects first among the methods it uses, calling them "a strong signal that the target of the redirect should become canonical". It tells site owners to pick one of the URL variants as canonical and redirect the others to it. E4 checks exactly that setup.

Best for a one-site owner: one redirect rule from the host you do not use to the host you do. Best for a WordPress owner: confirm the Site Address under Settings, General, then test both hosts once. Best for a platform team: put the redirect at the CDN or load balancer so every app behind it inherits it.

Corrected counts, 17 November 2026: a fifth of the 7 October duplicates were subdomains

The short answer: once hosts that are already a subdomain are taken out, the duplicate-origin share drops from 38.2% to 33.3% in the 7 October corpus (212 of 637 domains) and sits at 31.2% today (240 of 769 domains). The advice for a bare domain with a live www. twin does not change. What changes is the headline number, and the verdict for anyone scanning a *.vercel.app, *.pages.dev or docs. style host.

What was wrong. E4 builds the "other host" by putting www. in front of whatever you scanned. For example.com that is the right test. For app.example.com or myproject.vercel.app it tests www.app.example.com or www.myproject.vercel.app, names nobody uses. And when that name fails to answer, E4 still writes "serves its own copy (duplicate origin)" and takes a point off. The 7 October table counted every one of those verdicts as a real duplicate. It is the same class of problem our evidence-string audit found in other checks: the string restates a verdict without the response that produced it, here the missing DNS answer or the failed TLS handshake.

The 7 October table, re-split

We re-ran the original query with a cut-off of 7 October 2026, 03:00 UTC, the moment the post was written. It reproduces the published population exactly: 696 hosts, 266 duplicate-origin verdicts, 105 with no HTTPS upgrade. Then we split it by host shape. A host counts as a subdomain when it has three or more labels after www. is removed, with two-part country suffixes such as co.uk and com.bd counted as one label.

7 October corpusHostsE4 pass"Serves its own copy"ShareNo HTTPS upgrade
Domains (apex)63740121233.3%90
Already a subdomain5945491.5%15
All hosts, as published69640526638.2%105

So 54 of the 266 published duplicates (20.3%) were subdomains. Four subdomains passed in that corpus, because their www. name happened to redirect.

The same split today

The live corpus on 17 November 2026: latest site scan per host, rubric 2026.08.2, aiscan.site excluded, aggregates only.

17 November corpusHostsPassPartial"Serves its own copy"ShareMean score
Domains (apex)76949527424031.2%56.9
Already a subdomain807737290.0%52.4
All hosts84950234731236.7%56.4

Among the 80 subdomains, only 7 get a "redirects to the canonical host" verdict. The rest are split across hosting platforms like this:

Subdomain groupHosts"Serves its own copy"
*.vercel.app1211
*.pages.dev44
*.netlify.app22
*.github.io11
Other subdomains (app., docs., blog. and so on)6154

For the 769 domains, the four boxes from earlier in this post now read: HTTP upgrades and www. redirects on 495, HTTP upgrades and www. serves a copy on 159, no upgrade and a duplicate on 78, no upgrade but a single host on 31, and 6 with plain HTTP unreachable.

Platform shares, domains only

Detected platformDomainsDuplicate originShare (17 Nov)Share as published (7 Oct, all hosts)
None detected27812645.3%51.3%
WordPress2042210.8%15.7%
Next.js1906534.2%41.3%
Astro431125.6%35.3%
Shopify1516.7%11.8%
Lovable12541.7%54.5%

The order of platforms holds. Every share falls, and the Next.js and Astro rows fall the most because those are the stacks most often scanned on a preview subdomain. Shopify and Lovable remain small samples.

Our own four hosts, checked by hand

We ran the public scan and curl on two of our own subdomains and two of our own domains on 17 November 2026, between 03:10 and 03:20 UTC.

Host (ours)E4 verdictWhat www. actually does
aisitescan.vercel.apppartial, "www.aisitescan.vercel.app serves its own copy"resolves through Vercel's wildcard DNS, then the TLS handshake fails (curl exit 60): no HTTP response at all
bettershield-site.pages.devpartial, same clauseno public DNS record for the www. name
aiscan.sitepass, "redirects to the canonical host"one 301 hop to https://aiscan.site/
xspeedcache.compass, "redirects to the canonical host"one 301 hop to https://xspeedcache.com/

The two controls behave as the check expects. The two subdomains lose a point for a host that cannot serve anything. According to RFC 9525, the current standard for checking a server's certificate name, a wildcard matches exactly one label, so *.vercel.app cannot cover www.aisitescan.vercel.app. No setting on the project can change that.

What this does not fix

The bug also touches domains. A bare domain whose www. name has no DNS record or a broken certificate gets the same false "serves its own copy" verdict. Measuring that would mean probing third-party hosts, which this post does not do, so the 31.2% is still a ceiling, not an exact count. Check yours with the first curl command in the verify section below: if https://www. gives code=000, the duplicate is not real and there is nothing to redirect (add the www. host to your certificate if you want visitors who type it to arrive).

We reported the check bug on 16 November and it was still open on 17 November: both our subdomains returned the same verdict in this morning's scan. When the fix ships, this section gets a recount from post-fix scans only.

What to do if your scan says "serves its own copy"

Your hostcurl https://www.yourhost/ returnsWhat it meansWhat to do
Bare domain200 with the same pageReal duplicate301 www. to the apex, or the reverse
Bare domaincode=000 (DNS or TLS failure)False verdictNothing to redirect; optionally add www. to DNS and the certificate, then redirect
Subdomain or PaaS preview hostcode=000False verdictIgnore the E4 point; it will come back when the fix ships
PaaS preview host with a custom domainanythingThe preview URL is a second copy of your siteRedirect the preview host to the custom domain, as Vercel's guide on vercel.app duplicates describes

The last row is the duplicate that does matter on a PaaS, and canonical host redirects for agents walks through the redirect itself. Google Search Central's canonicalization page treats any two URLs serving the same content as duplicates, whatever the hostname, so a live preview host next to a custom domain is the real version of the problem E4 was trying to catch.

What E4 actually checks

E4 is one of the five discoverability checks, alongside D1, D2, D3 and E1, and it carries a weight of 4 in the 2026.08.2 rubric. The evidence strings it writes follow one fixed template, which makes them easy to count:

final origin <URL> · http:// <upgrades to https | does NOT upgrade to https | unreachable> · <host> <redirects to the canonical host | serves its own copy (duplicate origin) | unreachable (fine)> · <HSTS set | no HSTS header>

Four facts per scan, then. Which origin the request lands on after redirects, whether plain HTTP is upgraded, what the other host (www. when you scanned the apex, the bare domain when you scanned www.) does, and whether the final response carries a Strict-Transport-Security header.

The scoring is what the data shows it to be, not what we assumed when we wrote the check. Across the corpus the check awards 4 of 4 to 405 hosts, 3 of 4 to 205 hosts and 2 of 4 to 86 hosts. Grouping the evidence strings by status gives a clean mapping: a pass means HTTP upgrades and the other host redirects (or does not exist). A duplicate origin with a working HTTPS upgrade earns 3. A missing HTTPS upgrade, usually together with a duplicate origin, earns 2. HSTS appears in the evidence but does not move the score.

Why a crawler or agent cares about this at all

An agent that fetches a page does not know your preferred hostname. It knows the URL it was handed, by a search result, a link, a sitemap or a training-data snapshot. If https://example.com/pricing and https://www.example.com/pricing both return 200 with the same content, any index that stores pages by URL now holds two entries for one page. Citation counts split. A retrieval system that deduplicates by exact URL keeps both. A rel="canonical" tag in the HTML can paper over this for search engines that read it, but an agent that fetches and summarises one page often never looks at it.

Google's documentation describes the same problem for its own index. Google Search Central says it prefers HTTPS pages over equivalent HTTP pages as canonical, with exceptions such as an invalid certificate or insecure dependencies, and recommends using permanent redirects to tell Google that a redirected URL is a worse version than its target. Search engines have years of heuristics for resolving duplicates. A newer agent that reads a page once has far fewer.

Method and limits, before any table

Population. Every scan in the AIScan production database taken under rubric version 2026.08.2, reduced to one latest scan per host (hosts compared case-insensitively with www. and the path removed), with aiscan.site excluded. That leaves 696 hosts. No individual host is named in this post.

What the population is. These are sites that someone chose to scan with AIScan, or that we scanned while researching earlier posts. It is not a random sample of the web and it skews toward people who already care about agent readiness, which probably flatters the pass rate. Treat 58.2% as a ceiling for the ordinary web.

What the probe sees. E4 runs from AIScan's scanner, from one network location, at the time of the scan. A redirect that depends on country, user agent or cookie is outside what it observes. The scan date differs per host, so a site that fixed its redirects last week and has not been rescanned still shows up as partial.

What the evidence does not record. The evidence string has no redirect hop count and no status code for the intermediate responses. We had planned to report the average number of hops an agent spends before the first byte. The data cannot support that, so we are not reporting it. Counting hops would need a fresh probe, which is a different study.

A quirk we found while reading the strings. For hosts that are already subdomains, the probe still tries a www. prefix on them (a subdomain of a larger site shows up in the data with a www. variant that serves its own copy). Some of the 266 duplicate-origin verdicts are therefore hosts for which no www. variant was ever meant to exist. The 7 October version of this post said we could not separate them. We can, by host shape: 54 of the 266 are subdomains, and the corrected counts are in the section above.

A word on causation. Where a table compares average scores between groups, it is an association on observational data. Sites that handle redirects well also tend to handle many other things well.

The result: two questions, four boxes

Every host answers two independent questions. Does plain HTTP upgrade to HTTPS? And does the other hostname redirect to the canonical one, or serve its own copy? Crossing them gives four boxes (plus a few unreachable cases):

Other host redirects (or absent)Other host serves its own copy
HTTP upgrades to HTTPS403 hosts, E4 pass, 4 of 4180 hosts, partial, 3 of 4
HTTP does not upgrade20 hosts, partial83 hosts, partial, 2 of 4

The remaining 10 hosts have one side unreachable. Two of them are passes because the missing www. host is treated as fine.

Three things stand out.

1. The duplicate origin is the main problem, not HTTPS. 266 hosts have a duplicate origin against 105 with no HTTPS upgrade. Most operators have been told for years to get HTTPS working, and the data agrees: 585 of 696 hosts (84.1%) upgrade HTTP to HTTPS. Far fewer finished the second half of the job, which is making the two hostnames collapse into one.

2. The two failures cluster. Of the 105 hosts with no HTTPS upgrade, 83 also have a duplicate origin. That is 79% of them. A site without a redirect from HTTP is usually a site where nobody has written any redirect rule at all, or the redirect lives in a place the scanner cannot reach, such as a client-side script.

3. HSTS is a separate decision. Of the 696 hosts, 319 (45.8%) send an HSTS header. Among passes the rate is 218 of 405 (53.8%), among partials 101 of 291 (34.7%). Because 187 hosts pass E4 without HSTS, the check clearly does not require it. We cover why you may still want it in the fix section.

The evidence strings, counted

The 22 templates collapse into the following. This is the part you can reproduce by running the query shown at the end.

Evidence pattern (host replaced by H)HostsStatus
HTTP upgrades · www redirects to canonical · no HSTS151pass
HTTP upgrades · www redirects to canonical · HSTS set141pass
HTTP upgrades · www serves own copy · no HSTS93partial
HTTP upgrades · bare domain redirects to canonical · HSTS set76pass
HTTP upgrades · www serves own copy · HSTS set74partial
HTTP does NOT upgrade · www serves own copy · no HSTS59partial
HTTP upgrades · bare domain redirects to canonical · no HSTS35pass
HTTP does NOT upgrade · www serves own copy · HSTS set15partial
All other combinations (14 patterns)52mixed

The last row is mostly small combinations, for example HTTP unreachable, or no upgrade with a working redirect between hosts.

One pattern in that table deserves a second look: 15 hosts send an HSTS header on the final HTTPS response while plain HTTP still does not redirect. That combination looks odd, and it is not a contradiction. The header is only honoured when it arrives over HTTPS, so a browser that has visited the HTTPS site once will upgrade by itself, while every first-time visitor, crawler and agent still gets the plain-HTTP response.

Does your platform change the odds?

The platform column comes from AIScan's own detection, so a quarter of the corpus has none. The sample sizes below are uneven, so the small rows are indicative only.

Detected platformHostsDuplicate originShareNo HTTPS upgradeShare
None detected26113451.3%7127.2%
WordPress1852915.7%73.8%
Next.js1606641.3%1710.6%
Astro341235.3%411.8%
Shopify17211.8%00%
Lovable11654.5%00%

Two readings fit the data.

Managed or CMS platforms tend to handle it for you. WordPress normally redirects to the Site Address you set, and Shopify lets a store mark one domain as primary. Their duplicate rates, 15.7% and 11.8%, are the lowest in the table. A platform that makes one hostname the primary by default produces fewer duplicates than a platform that asks you to decide.

Framework deployments leave it to the host. A Next.js or Astro site serves whatever hostnames its host maps to it. If you add both example.com and www.example.com as domains and never mark one as the redirect, both answer. That is the default state, not a mistake in the code, which is why 41.3% of Next.js hosts and 35.3% of Astro hosts land in the duplicate-origin column. The fix lives in the hosting dashboard or the edge, and the framework itself rarely needs to change.

The "none detected" row has the worst numbers on both axes, and the 27.2% with no HTTPS upgrade is over seven times the WordPress rate. We can only guess what is in that group (hand-built sites, static hosts, unusual stacks), so we leave it at the observation.

What the score gap looks like

The mean overall score of hosts that pass E4 is 63.6. For hosts with a partial E4 it is 44.0. A gap of 19.6 points looks like a finding, and it is mostly not one.

Platform composition explains much of it. The no-platform-detected group is the largest and has the lowest scores, and it also has the most duplicate origins. Within one platform the gap changes size and sometimes direction: among Shopify hosts the mean for passes and partials is almost identical (66.6 against 67.0), while among Astro hosts it is 82.0 against 40.8, from small samples.

The honest summary is that E4 is a hygiene signal that travels with other signals. Fixing E4 alone will earn the points E4 carries, up to 2 of its 4, and it will not drag the other checks up behind it. For the ranked view of which checks move the overall score most, see the agent-readiness fix ranking. E4 is cheap, though: it is a few lines of server configuration, once, with no content changes.

Why a duplicate host matters more for agents than for people

A person types one address and never sees the other. An agent meets both. Four routes lead to a duplicate:

  1. Inbound links. Other sites link to whichever form they typed. Both forms accumulate links.
  2. Your own sitemap. Sitemap files list absolute URLs. If your sitemap uses the apex and a theme or plugin writes www. links inside the pages, a crawler sees both.
  3. Training and retrieval snapshots. A model built from a crawl in which both forms appeared may recall either one, and a citation then points at whichever it stored.
  4. Redirect-blind fetchers. Some tools fetch a URL once and stop at the first 200. When that 200 comes from the host you did not intend, there is no second chance to correct it.

None of these requires the duplicate to be malicious or even visible. They only require that both hostnames answer, and 266 of 696 hosts in this corpus have that setup today.

What HSTS adds, and what it cannot

The HSTS specification, RFC 6797, says a user agent must ignore any Strict-Transport-Security header that arrives over insecure transport. That one rule produces the limit we saw in the 15 hosts above: HSTS is a memory held by browsers that have already made a secure request. It protects repeat visitors. It does nothing for a crawler or agent whose first and only request is http://, because that request is answered in the clear, and a server that does not redirect it hands back the plain-HTTP page.

So the order is fixed. The redirect handles the first request. HSTS handles the second and later requests from browsers. Rolling it out with a short max-age first is the cautious way to do it.

The fix, in the order that avoids breaking things

The goal is one canonical origin: one scheme and one host. Pick it first. Either the apex (https://example.com) or www works. The choice matters less than making it once and keeping it. If you already have inbound links and indexed pages on one form, keep that form.

Step 1: make sure both hostnames and both schemes have a valid certificate

A redirect from a host with a certificate error never reaches the browser or agent as a redirect. It fails the TLS handshake first. Confirm that the certificate covers the apex and www, or that your CDN terminates TLS for both. This is the step skipped most often when a site "only uses the apex".

Step 2: add the redirects

nginx, with the apex as canonical:

server {
    listen 80;
    listen [::]:80;
    server_name example.com www.example.com;
    return 301 https://example.com$request_uri;
}

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name www.example.com;
    # ssl_certificate lines for the www host go here
    return 301 https://example.com$request_uri;
}

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name example.com;
    # your real site configuration
}

The first block sends HTTP for both hosts straight to the final origin in one hop. A common mistake is to redirect http://www to http://example.com and then redirect that to HTTPS, which works but spends two hops.

Apache (.htaccess or a virtual host with mod_rewrite):

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://example.com%{REQUEST_URI} [L,R=301]

A CDN or hosting redirect rule. Most hosts and CDNs have a "redirect www to apex" or "redirect apex to www" toggle in the domain settings, plus an "always use HTTPS" setting. Turn on both, and make sure the rule is set to permanent (301 or 308) rather than temporary. If your DNS and your host disagree about which hostname is primary, the host setting wins for what visitors see.

WordPress. Under Settings, General, set the WordPress Address and the Site Address to the exact canonical form, scheme included. WordPress will redirect the other host to that address on its own. If the site still serves both, the redirect is usually being cached upstream or overridden by a server rule, so check the layer in front of PHP. On the head side, one plugin should own the canonical tag and the sitemap. ThinkRank is the plugin we point WordPress readers to for those: it replaces the several plugins that otherwise fight over robots, sitemap and schema output, and it migrates settings from Rank Math, Yoast, AIOSEO and SEOPress. It cannot add a server redirect, so treat it as the second half of the job, not the first.

Step 3: use permanent redirects and a single hop

Google's documentation tells site owners to use permanent redirects for duplicates and says server-side redirects take effect quickest. Use 301 or 308. Keep the hop count at one wherever you can: HTTP on either host should land directly on the final HTTPS origin, not wander through an intermediate hostname first.

Step 4: only then add HSTS

Strict-Transport-Security: max-age=300

Start with a five-minute max-age, confirm nothing breaks, then raise it. Adding includeSubDomains commits every subdomain you own to HTTPS, including ones you forgot about, so check the subdomain list before you add it. Setting a year-long max-age before the redirects work is how sites lock themselves out of their own staging hosts.

Step 5: align the signals that point at the host

After the redirect works, make everything else agree with it: the rel="canonical" tag, the URLs in your sitemap, the URLs in structured data, and the absolute links your templates generate. A redirect fixes what happens when someone arrives on the wrong host. These fix why they keep arriving there.

Verify it: the scan first, curl second

Run AIScan. npx aiscan-cli yourdomain.com, or paste the URL at aiscan.site. It is free and needs no account. The report names check E4 (canonical host and HTTPS) and its evidence line has the template shown earlier, so you can read your own result directly: both "upgrades to https" and "redirects to the canonical host" mean a pass. The neighbouring discoverability checks, D1, D2, D3 and E1, are in the same report, and their pages are collected under discoverability in the docs.

What AIScan cannot see. It probes from one location, so it will not catch a redirect that only misfires for a particular country or a logged-in session. It also does not record the number of hops. Use curl for those two.

If you would rather check by hand, three commands cover the whole check:

# 1. Does plain HTTP upgrade, and in how many hops?
curl -sIL -o /dev/null -w 'final=%{url_effective} hops=%{num_redirects} code=%{http_code}\n' http://example.com/

# 2. Does the other host collapse into the canonical one?
curl -sIL -o /dev/null -w 'final=%{url_effective} hops=%{num_redirects} code=%{http_code}\n' https://www.example.com/

# 3. What does the first redirect actually return?
curl -sI http://www.example.com/ | head -n 5

Run all three against both hosts. You want the same final= URL every time, hops=1 at most, and 301 or 308 on the first response in command 3. A 302 or 307 means the redirect is temporary.

Common mistakes

MistakeWhat you seeFix
Redirect loop between apex and wwwcurl reports "too many redirects"; the browser shows ERR_TOO_MANY_REDIRECTSOne rule only: the CDN and the origin must not redirect in opposite directions
Certificate covers apex onlycurl: (60) on https://www.Add www to the certificate, or let the CDN terminate TLS
HTTP redirects to the wrong host firsthops=2 or moreSend HTTP for both hosts straight to the final origin
Temporary redirect left from setup302 in the first responseChange the rule to 301 or 308
Redirect drops the pathEvery old URL lands on the homepagePass $request_uri or %{REQUEST_URI} through
HSTS added with includeSubDomains too earlyStaging or legacy subdomains stop loadingRemove the directive, wait for the max-age to expire, then add it back with a plan
Canonical tag disagrees with the redirectTag says www, server sends visitors to apexMake both point at the same origin

What this means for the product

Reading 696 evidence strings turned up three issues in E4 itself. We list them because publishing the limits of our own check is part of reporting the data.

  1. The evidence omits hops and intermediate status codes. That is why the hop-count analysis above is missing. Recording the chain would also let a transient error be told apart from an absent redirect.
  2. Subdomains get a www. probe, and an unreachable www. counts as a copy. A subdomain of a larger site should not be marked down for failing to serve a www. prefix that nobody uses. The 266 figure included 54 of these; the corrected 212 does not. Reported 16 November 2026 and still open on 17 November.
  3. The unreachable-host wording says "fine". Two passes rest on a host being unreachable. That is a reasonable reading for a www. that does not exist, and a poor one for a timeout.

None of these changes the main finding. The 291 partials mostly come from real duplicate origins, and the redirect rules above fix them. We will rerun the numbers after the probe is updated.

Reproduce the numbers

The queries below run against the AIScan scans table. They aggregate in SQL and never select rows, which is why no host appears in this post.

with latest as (
  select distinct on (lower(split_part(regexp_replace(url,'^https?://(www\.)?',''),'/',1)))
         url, platform, score, result
  from scans
  where rubric_version = '2026.08.2' and url not ilike '%aiscan.site%'
  order by lower(split_part(regexp_replace(url,'^https?://(www\.)?',''),'/',1)), created_at desc
),
e4 as (
  select platform, score, c->>'status' s, c->>'evidence' ev
  from latest, jsonb_array_elements(result->'checks') c
  where c->>'id' = 'E4'
)
select count(*) n,
       count(*) filter (where s = 'pass') pass,
       count(*) filter (where s = 'partial') partial,
       count(*) filter (where ev ilike '%duplicate origin%') duplicate_origin,
       count(*) filter (where ev ilike '%does NOT upgrade%') no_https_upgrade,
       count(*) filter (where ev ilike '%HSTS set%') hsts
from e4;

Your next action

Scan your domain with AIScan and read the E4 line. If it says "serves its own copy (duplicate origin)", add the redirect from the hostname you do not use. If it says "does NOT upgrade to https", add the site-wide HTTP-to-HTTPS 301 first. Rescan, then add HSTS with a short max-age. The rest of the discoverability family, D1, D2, D3 and E1, is covered in the discoverability checks, and every guide is collected at /guides. For the wider picture of where sites stand today, see the state of AI agent readiness in 2026.

Per-platform settings for fixing the duplicate host are in the canonical host guide for Next.js, Webflow, Squarespace, Lovable, Replit, Framer and Wix.

Frequently asked questions

What does AIScan check E4 test?

E4 tests the canonical host and HTTPS setup. It records where a request ends up after redirects, whether http:// upgrades to https://, whether the other hostname (www or bare domain) redirects to the canonical one or serves its own copy, and whether HSTS is set. A pass needs the HTTP upgrade and a single canonical host.

Why does my scan say my www host serves its own copy (duplicate origin)?

Both hostnames answer with a full page instead of one redirecting to the other. This is the default when you add both domains to a host or CDN without marking one as the redirect. Pick one host and add a permanent 301 or 308 from the other, preserving the path. In our 696-host corpus 266 hosts (38.2%) are in this state.

My scan says http:// does NOT upgrade to https. What do I fix first?

Add a site-wide permanent redirect from HTTP to HTTPS, sent straight to the final canonical origin in one hop. In the corpus 105 hosts (15.1%) had no upgrade, and 83 of them also had a duplicate host, so fix the HTTP redirect first and the host redirect second.

Curl says too many redirects after I added a www redirect. What went wrong?

Two layers are redirecting in opposite directions, for example the CDN sends apex to www while the origin sends www to apex. Keep one rule in one layer, then rerun the three curl commands and confirm the same final URL with one hop.

Do I need HSTS to pass E4?

No. 187 of the 696 hosts pass E4 without an HSTS header. HSTS only helps browsers that have already made a secure request, because the header is ignored over plain HTTP. Add it after the redirects work, starting with a short max-age such as 300 seconds.

Should I pick the apex or the www host as canonical?

Either works, and the choice matters less than making it once. If most of your inbound links and indexed pages already use one form, keep that form. Then make the redirect, the canonical tag, the sitemap and your internal links all agree on it.

Why does curl fail with a certificate error on https://www when the apex works?

The certificate does not cover the www hostname, so the TLS handshake fails before any redirect can be sent. Add www to the certificate or let your CDN terminate TLS for both hosts, then add the redirect. This is the most common reason a redirect that looks correct in config never works.

Will fixing E4 raise my whole AgentReadiness score?

It earns the points E4 carries, up to 2 of its 4 weight points for a partial, and no more. Hosts that pass E4 average 63.6 overall against 44.0 for partials, but that gap is mostly platform mix and other checks, not E4 alone. Treat it as cheap hygiene, not a lever for the whole score.

M Asif Rahman

About the author

Entrepreneur, curious about AI

I have been building companies for a long time, and lately most of my curiosity goes to AI. AIScan is a small personal project I built on a flight from Dubai to Narita. I use it to understand how ready the web is for AI agents, and I share what the scans teach me.

Related guides

Browse every guide by check and platform