WWW vs. Non-WWW
Whether to serve your site from www.example.com or example.com — why it's a canonicalization choice and not a ranking factor, what replaced GSC's Preferred Domain setting, and the DNS and certificate mechanics that actually decide it.
1 evidence signal on this page
- Related live toolRedirect Chain Mapper
www is a subdomain; non-www is the bare/apex/root domain. Google has said since 2005 there's no ranking difference — it's a canonicalization and consistency choice. The old GSC 'Preferred domain' setting was removed in June 2019; the replacement is consistent signals (rel=canonical + sitemap + a 301 from the version you didn't pick). The real reason sites default to www is DNS: a CNAME can't sit at the apex, so bare domains need A/ALIAS/ANAME records. Whatever you redirect from still needs a valid TLS cert. Pick one, 301 the other, keep everything consistent.
Evidence for this claim The www and non-www hostnames are distinct URLs; redirects and canonical signals can consolidate them to a preferred version. Scope: Current Google duplicate URL consolidation guidance. Confidence: high · Verified: Google Search Central: Canonicalization methods Evidence for this claim Changing a site's hostname is a URL-changing site move that requires redirects, updated internal signals, and monitoring rather than a simple ranking toggle. Scope: Current Google site-move guidance. Confidence: high · Verified: Google Search Central: Site moves with URL changesTL;DR —
www.example.comandexample.comare distinct hostnames commonly configured to serve the same site. Neither format has an inherent SEO advantage, so neither one is “better” for SEO. The only real job is to pick one, redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. the other to it, and be consistent everywhere. Which one you pick usually comes down to how your hosting and DNS are set up, not SEO.
What www and non-www actually are
The www in a web address is a subdomain — the same kind of thing as
blog.example.com or shop.example.com. It’s just a very old convention that came
to mean “this is the website.” The version without it — example.com — is called
the bare domain, the apex domain, or the root domain. Different names,
same thing.
Both usually point to the exact same pages. So the question “www or not?” isn’t really about which one is a better website — it’s about which one you want search engines and browsers to treat as the address.
Does it affect your rankings?
No. This is one of the most settled questions in all of SEO. Google has said the same thing for two decades: it has no preference between www and non-www, and switching from one to the other — done properly — doesn’t move your rankings.
So don’t lose any sleep over which one is “more SEO-friendly.” Neither is. What can hurt you is doing it sloppily: letting both versions load without picking a winner, so the same page exists at two addresses and search engines have to guess which one to show.
How to do it right
- Pick one — www or non-www. Either is fine.
- Redirect the other to it with a permanent (301) redirect, so anyone who visits the wrong one lands on the right one.
- Point everything at your choice — your internal linksAn internal link is a hyperlink from one page on a website to another page on the same website. Internal links help search engines discover your pages and pass ranking signals (PageRank and anchor-text context) between them., your sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing., and any canonical tagsA rel=\"canonical\" annotation — in the HTML <head> or an HTTP Link header — that tells search engines which URL is the preferred version of duplicate or near-duplicate content. should all use the same version.
That’s it. There used to be a setting in Google Search ConsoleA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results. where you told Google your preference directly, but Google removed it — I’ll cover what replaced it in the Advanced version.
The thing most people get wrong
People treat this as an SEO decision when it’s really a plumbing decision. The
reason so many sites end up on www has nothing to do with rankings and everything
to do with how domain names (DNS) work behind the scenes — some setups literally
can’t point the bare domain where they need to without extra steps. Want the DNS
mechanics, the certificate gotcha that bites people mid-switch, and why the old
“cookie-free domain” advice is dead? Switch to the Advanced tab.
Evidence for this claim The www and non-www hostnames are distinct URLs; redirects and canonical signals can consolidate them to a preferred version. Scope: Current Google duplicate URL consolidation guidance. Confidence: high · Verified: Google Search Central: Canonicalization methods Evidence for this claim Changing a site's hostname is a URL-changing site move that requires redirects, updated internal signals, and monitoring rather than a simple ranking toggle. Scope: Current Google site-move guidance. Confidence: high · Verified: Google Search Central: Site moves with URL changesTL;DR — www is a subdomain; non-www is the apex/bare/root domain. Google has said there’s no ranking difference since 2005, reaffirmed by Mueller in March 2024 (“when the canonical URLHow search engines pick one canonical URL among duplicates and consolidate signals onto it. switches, it just switches”). GSCA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results.’s Preferred Domain setting was removed June 18, 2019 — the replacement isn’t a toggle but a bundle of agreeing signals:
rel=canonical, sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. inclusion of only the chosen version, and a permanent redirectA 301 redirect is the HTTP status code for a permanent move: it tells browsers and search engines a URL has moved for good, and it's the strongest signal for consolidating a page's ranking signals onto the new URL. Google says permanent redirects don't cause a loss in PageRank. from the other. Canonical signals can disagree, so consistency across all of them matters more than any single setting ever did. The real reason sites default to www is DNS — a CNAME can’t sit at the zone apex, so bare domains need A/AAAA or ALIAS/ANAME/CNAME-flattening. Watch the TLS/HSTSHSTS (HTTP Strict Transport Security) is a response header that tells browsers to always connect to your site over HTTPS — even when a user types or clicks an http:// link — closing the insecure-first-request gap that a plain 301 redirect leaves open. trap on the version you redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. from, remember host-only cookies don’t cross hostnames unless you setDomainto the apex, and drop the obsolete cookie-free-domain argument.
www is a subdomain; non-www is the apex
Start with the definitional point, because everything downstream flows from it:
www is a subdomain, structurally identical to blog. or shop.. example.com
is the apex (also “bare” or “root”) domain — the zone apex, where the domain’s
SOA and NS records live. That distinction sounds pedantic until you get to DNS,
where it’s the whole story.
Because www is a subdomain, it’s tempting to reach for everything Google has said
about subdomains to answer the ranking question — but that’s the wrong evidence for
the job. Mueller’s often-cited line that Google treats subdomains and subdirectories
“the same” algorithmically answers a different question: where to organize
genuinely different content, like a blog on blog.example.com versus /blog/.
www versus non-www isn’t that kind of choice — it’s identical content reachable at
two hostnames, which is a canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. question, not an information-architecture
one. The direct, www-specific evidence for “no ranking difference” is next.
Does www vs non-www affect rankings? No.
This is the question everyone actually wants answered, and the answer has been stable longer than almost anything in SEO. Google’s original 2005 post on the topic already framed it as a duplicate-URL/consolidation issue, not a ranking one. Nearly twenty years later, in March 2024, John Mueller answered a site owner whose Cloudflare migration had silently flipped their canonicals from www to non-www: “This won’t cause problems with search visibility / rankings / indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed.: when the canonical URL switches, it just switches. You might see a little blip, but it goes to normal very quickly.”
The one caveat he adds is the load-bearing distinction: “The only time it would cause bigger changes is if you switch canonicals to a different domain… with a www/non-www switch it’s all within the same domain and you should be fine.” That’s why this is low-drama: www and non-www are the same registered domain. You’re not changing domains, you’re picking a hostname.
So treat “does it affect rankings” as already settled — no — and spend your effort on the parts that actually take work: the DNS setup and the redirect.
Be precise about what consistency buys you, too: picking one hostname and aligning your signals removes duplication ambiguity for crawlersA crawler — also called a spider or bot — is an automated program that fetches web pages, extracts their links, and queues new URLs to visit. Search engines use crawlers to discover and download content for their index.. It doesn’t guarantee rankings, traffic, or that an AI OverviewAI Overviews are the AI-generated summary box Google shows above or within its regular search results, written by Gemini models from pages retrieved out of Google's normal Search index. It's a Search feature, not a separate platform or index. or chatbot cites you — nothing about canonicalizing correctly promises an outcome, it just gives search engines and AI answer systems one clear address to point at instead of two.
The history: GSC’s Preferred Domain setting
For years, Google Search ConsoleA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results. had a Preferred domain setting: you told Google whether to show your site as www or non-www, and it obliged. That’s the setting a lot of older tutorials still tell you to flip. It’s gone.
Google announced its removal in the June 18, 2019 post Bye Bye Preferred Domain setting: “As we progress with the migration to the new Search ConsoleGoogle's free tool for monitoring crawling, indexing, and search performance. experience, we will be saying farewell to one of our settings: preferred domain.” And critically, it stopped honoring old configurations: “Note that with the deprecation we will no longer use any existing Search Console preferred domain configuration.” So even if you set it years ago, it’s doing nothing now.
What replaced it isn’t a new toggle — it’s a combination of signals you have to keep in agreement. Google spelled out the options in that same post: “Use rel=“canonical” link tag on HTML pages / Use rel=“canonical” HTTP header / Use a sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. / Use 301 redirectsA 301 redirect is the HTTP status code for a permanent move: it tells browsers and search engines a URL has moved for good, and it's the strongest signal for consolidating a page's ranking signals onto the new URL. Google says permanent redirects don't cause a loss in PageRank. for retired URLs.” In practice that means:
- A 301 redirect from the version you didn’t pick to the one you did.
rel=canonicaltags pointing at your chosen version.- A sitemap that lists only the chosen version — Google’s 2005 guidance already warned not to submit both: having both listed “won’t affect the indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. of your site as long as you have submitted a Sitemap for only one version.”
Why “hint, not rule” means consistency wins
Here’s the part that makes the old single-setting mindset dangerous. Google’s
canonicalization docs are explicit that all of these are suggestions:
“indicating a canonical preference is a hint, not a rule.” Google weighs several
factors — HTTP vs HTTPSHTTPS is the encrypted version of HTTP — it uses TLS to authenticate the server and protect data in transit between a browser and a website. Google announced it as a lightweight ranking signal in 2014 and today conditionally prefers HTTPS pages as canonical; Chrome marks plain HTTP pages 'Not Secure.', redirects, sitemap inclusion, and rel=canonical
annotations — and it can still pick the version you didn’t want if your other
signals (backlinks, internal linksAn internal link is a hyperlink from one page on a website to another page on the same website. Internal links help search engines discover your pages and pass ranking signals (PageRank and anchor-text context) between them.) lean the other way.
That’s exactly why consistency across every signal matters more than any one setting ever did. A canonical tagA rel=\"canonical\" annotation — in the HTML <head> or an HTTP Link header — that tells search engines which URL is the preferred version of duplicate or near-duplicate content. pointing at non-www while half your internal links and your sitemap point at www is a mixed message. Pick one and make all of it agree — this is the same “consistency beats optimization” principle that runs through the URL-structure and canonicalization work in this cluster; www vs non-www is just one of the roughly 40 canonicalization signals catalogued there.
So why do so many sites default to www? DNS.
This is the question almost every other article skips, and it’s the actual answer: DNS, not SEO, not branding.
A CNAME record is the easy button for pointing a hostname at a CDN or host: you
CNAME www.example.com to your provider’s hostname, and it just works — and keeps
working if the provider changes IPs. But the DNS spec won’t let a CNAME live at
the zone apex. The apex must carry SOA and NS records, and a CNAME has to
be the only record at its node — those two rules conflict, so a bare CNAME at
example.com is illegal per the spec (RFC 1912 / 2181), and most DNS providers
reject it.
To get the same “point at my CDN” behavior on the bare domain, you need one of:
- an
A/AAAArecord (requires a static IP, which many CDN/host setups don’t hand you), or - a provider-specific
ALIAS/ANAMErecord, or Cloudflare’s CNAME flattening — all of which fake a CNAME at the apex by resolving it server-side. Not every DNS provider supports these.
That friction is very plausibly the actual reason so many platforms default to
www: it’s the hostname that can always take a simple CNAME. It’s a hosting/DNS
decision dressed up as an SEO one.
Cookies are scoped to the hostname you choose
Hostname choice has a second, easy-to-miss consequence: cookie scope. A cookie set
without a Domain attribute is a host-only cookie — it’s sent back only to the
exact host that set it. Set a session cookie on www.example.com with no Domain
attribute, and it never reaches example.com (or any other subdomain), and vice
versa.
If you want a cookie shared across the apex and its subdomains, set Domain to the
apex explicitly — e.g. Domain=example.com. Per RFC 6265,
a cookie’s Domain value has to match the current host or a parent of it, so you can
set Domain=example.com from a page served on www.example.com, and the cookie
then applies to example.com and every subdomain — but you can’t set Domain for
an unrelated domain.
This matters most during a migration. If your session or preference cookies are
host-only on the version you’re retiring, that state doesn’t carry across the 301 to
the new hostname — visitors can get logged out or lose a saved preference on their
first visit after the switch. Set Domain to the apex ahead of the migration if you
need continuity across both hostnames while the redirect is live, or budget for a
one-time re-login on switch day.
The obsolete cookie-free-domain argument
You’ll still see advice to use a separate cookieless domain (often the bare domain, or a dedicated assets subdomain) for static files. That was a real HTTP/1.1-era optimization: every request to a cookie-carrying domain shipped the cookie’s bytes along with it, even for images and CSS, so serving static assets from a cookieless host saved overhead. GTmetrix and PageSpeed used to flag it.
It’s largely dead now. HTTP/2’s HPACK header compressionCompression (HTTP content encoding) shrinks text-based responses — HTML, CSS, JS, JSON, SVG, XML sitemaps — before they're sent over the network, using an algorithm like Gzip, Brotli, or Zstd, so the browser or crawler downloads fewer bytes. It's not a ranking factor, but it speeds up page loads and helps pages stay under crawler fetch limits. plus the near-universal use of CDNs for static assets erase most of the benefit, and splitting assets onto a separate host now costs you an extra connection setup. Don’t pick www vs non-www — or spin up an assets subdomain — for this reason in 2026.
The HSTS and certificate trap
Here’s the practical gotcha that bites people mid-switch, and it’s genuinely
underserved elsewhere. When you redirect one hostname to the other, the hostname
you redirect from still needs its own valid TLS certificate. A 301 from
https://www.example.com to https://example.com only fires after the browser
completes a TLS handshake with www.example.com — so if www has no valid cert (or
a cert that doesn’t cover it), the visitor gets a full-page security warning
before your redirect ever runs. Cover both hostnames, with either separate certs
or one SAN/wildcard cert.
HSTS makes this sharper. An HSTS policy is host-specific — a policy set on
example.com does not automatically protect www.example.com, and vice versa.
includeSubDomains only propagates one direction (a parent’s policy can cover its
subdomains; a subdomain’s policy never covers the parent). So if you’re on the HSTS
preload list or forcing HTTPSHTTPS is the encrypted version of HTTP — it uses TLS to authenticate the server and protect data in transit between a browser and a website. Google announced it as a lightweight ranking signal in 2014 and today conditionally prefers HTTPS pages as canonical; Chrome marks plain HTTP pages 'Not Secure.', make sure the cert-and-HSTS story is coherent on
both hostnames, or the forced-HTTPS step will surface the missing-cert warning
before the redirect.
Bing has no Preferred Domain equivalent
Bing never had a preferred-domain toggle. Practically, Bing Webmaster ToolsMicrosoft's free portal for monitoring and improving how a site appears in Bing search — the peer to Google Search Console, plus IndexNow instant indexing, richer backlink data, and keyword volumes. Because Bing's index also feeds Microsoft Copilot, it doubles as a window into AI-search visibility. treats
www, non-www, and each HTTP/HTTPS combination as separate properties to verify
and report on — so even after you’ve picked a canonical and redirected the rest,
you’ll manage the variants as distinct properties there. The consolidation mechanism
is the same as Google’s: set the server-side 301, keep canonicals and sitemap URLs
consistent with your choice.
How to actually pick one and make it stick
- Choose based on DNS/hosting reality, not SEO. If your host/CDN needs a CNAME and your DNS provider doesn’t do ALIAS/flattening, www is the path of least resistance. If your DNS supports apex flattening and you prefer the cleaner bare domain, go non-www. Brand preference is a fine tiebreaker — it’s a real tie.
- 301-redirect the other version — a permanent 301, not a 302. (A 302 signals “temporary” and doesn’t consolidate the way you want.)
- Make canonical tags, sitemap, and internal links all agree on the winner.
- Check whether login/preference cookies are host-only. If you need sessions or
saved preferences to survive the switch, set
Domainto the apex before you flip the redirect — otherwise budget for visitors getting logged out once. - Ensure both hostnames have valid certs so the redirect never trips a warning.
- Add/verify the properties in Google Search Console (Domain properties cover all variants) and Bing Webmaster Tools (verify the variants separately).
Run the checks only after both hostnames have valid TLS. The redirect trace verifies observable hops; canonicals, sitemaps, internal links, and Search Console still need to agree with the same hostname.
Trace the hostname variants with my free Redirect Checker Free
- Test HTTP and HTTPS on both www and non-www for a representative path.
- Confirm all non-preferred variants reach the selected HTTPS hostname in one hop.
- Repeat on a few deep paths and preserve query strings only where the destination needs them.
Then leave it alone. Like changing URLs generally, re-litigating www vs non-www on a working site is effort spent for no ranking gain.
AI summary
A condensed take on the Advanced version:
- Definitions:
wwwis a subdomain;example.comis the apex / bare / root domain. Both serve the same content, so this is a canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. choice, not a ranking one. - No ranking difference — Google has said so since 2005; Mueller (March 2024): when the canonical switches within the same domain, “it just switches,” maybe a brief blip. The risk case is switching to a different domain, not www/non-www. (Mueller’s separate line about subdomains and subdirectories being treated “the same” answers a content-organization question, not this ranking question — don’t conflate the two.) Consistency also isn’t a guarantee of rankings, traffic, or AI citations — it just gives crawlersA crawler — also called a spider or bot — is an automated program that fetches web pages, extracts their links, and queues new URLs to visit. Search engines use crawlers to discover and download content for their index. and answer enginesAnswer Engine Optimization (AEO) is the practice of structuring content so engines deliver it as a direct answer — featured snippets, voice assistants, and AI search — rather than just a ranked link. Coined for voice search in 2018 and revived for the LLM era. Google's position is that it's still SEO. one clear address.
- GSCA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results.’s Preferred Domain setting was removed June 18, 2019 and old configs are
no longer honored. The replacement is a bundle of agreeing signals:
rel=canonical+ sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. listing only the chosen version + a 301 from the other. - Canonical signals are a hint, not a rule — Google can still pick the version you didn’t want, so all signals must agree. www/non-www is one of ~40 canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. signals.
- The real reason sites default to www is DNS: a
CNAMEcan’t sit at the zone apex (SOA/NS conflict, RFC 1912/2181), so bare domains needA/AAAAorALIAS/ANAME/CNAME-flattening. www can always take a simple CNAME. - Cookies are hostname-scoped: a host-only cookie (no
Domainattribute) doesn’t cross from www to non-www or back; setDomain=example.combefore migrating if sessions or preferences need to survive the switch. - Cookie-free-domain argument is obsolete post-HTTP/2HTTP/2 and HTTP/3 are the modern versions of the HTTP protocol. HTTP/2 multiplexes many requests over one TCP connection; HTTP/3 swaps TCP for QUIC (over UDP) so a dropped packet only stalls the one stream it belongs to, not every stream (streams still share the connection's congestion control). Neither is a Google ranking factor — the SEO payoff is indirect, through faster real-user page speed. (HPACK + CDNs).
- TLS/HSTSHSTS (HTTP Strict Transport Security) is a response header that tells browsers to always connect to your site over HTTPS — even when a user types or clicks an http:// link — closing the insecure-first-request gap that a plain 301 redirect leaves open. trap: the hostname you redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. from still needs a valid cert, or a
security warning fires before the 301. HSTS is host-specific;
includeSubDomainsonly flows parent → subdomain. - Bing has no preferred-domain toggle — it treats www/non-www/HTTP/HTTPSHTTPS is the encrypted version of HTTP — it uses TLS to authenticate the server and protect data in transit between a browser and a website. Google announced it as a lightweight ranking signal in 2014 and today conditionally prefers HTTPS pages as canonical; Chrome marks plain HTTP pages 'Not Secure.' as separate properties.
- Recommendation: pick one on DNS/hosting grounds, 301 the other (not 302), align canonicals/sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing./internal linksAn internal link is a hyperlink from one page on a website to another page on the same website. Internal links help search engines discover your pages and pass ranking signals (PageRank and anchor-text context) between them., cert both hostnames, and stop touching it.
Official documentation
Primary-source documentation from the search engines.
- Bye Bye Preferred Domain setting (2019) — the June 18, 2019 removal, and the exact list of what replaces it (canonical tagA rel=\"canonical\" annotation — in the HTML <head> or an HTTP Link header — that tells search engines which URL is the preferred version of duplicate or near-duplicate content./header, sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing., 301s).
- What is URL canonicalization — the factors Google weighs (HTTP/HTTPSHTTPS is the encrypted version of HTTP — it uses TLS to authenticate the server and protect data in transit between a browser and a website. Google announced it as a lightweight ranking signal in 2014 and today conditionally prefers HTTPS pages as canonical; Chrome marks plain HTTP pages 'Not Secure.', redirectsA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't., sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing.,
rel=canonical) and the “hint, not a rule” framing. - Consolidate duplicate URLs — the help-center article the 2019 post points to for declaring your preferred version.
- www vs non-www versions of a site (2005) — the foundational post (now carries Google’s outdated-content banner; use for history).
- SEO Starter Guide — general duplicate-URL / consolidation framing.
Bing / Microsoft
- Bing Webmaster Guidelines — Bing’s general canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. posture; no preferred-domain toggle.
- Better than canonical: URL Normalization — Bing’s normalization approach (301 preferred,
rel=canonicalsecondary).
Quotes from the source
On-the-record statements from Google. Each link is a deep link that jumps to the quoted passage on the source page.
Google, 2005 — the original framing
- “Two URLs to a site—one that is prefaced with www and one that is not (for instance, https://www.example.com/ and https://example.com/)—often point to the same location on a server. But depending on the server configuration, they may point to different locations, so search engines can’t assume they are the same.” — Vanessa Fox, Google. Jump to quote
- “Note that having both versions of the site’s URL listed in your account won’t affect the indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. of your site as long as you have submitted a SitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. for only one version—the version you want to be indexed.” — Vanessa Fox, Google. Jump to quote
Google, June 2019 — the Preferred Domain removal
- “As we progress with the migration to the new Search ConsoleA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results. experience, we will be saying farewell to one of our settings: preferred domain.” — Daniel Waisberg, Google. Jump to quote
- “Note that with the deprecation we will no longer use any existing Search ConsoleGoogle's free tool for monitoring crawling, indexing, and search performance. preferred domain configuration.” — Daniel Waisberg, Google. Jump to quote
- “Use rel=“canonical” link tag on HTML pages” — the first of the four replacement options (canonical tagA rel=\"canonical\" annotation — in the HTML <head> or an HTTP Link header — that tells search engines which URL is the preferred version of duplicate or near-duplicate content., canonical HTTP header, sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing., 301 redirectsA 301 redirect is the HTTP status code for a permanent move: it tells browsers and search engines a URL has moved for good, and it's the strongest signal for consolidating a page's ranking signals onto the new URL. Google says permanent redirects don't cause a loss in PageRank.). Jump to quote
Google — canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. is a hint, not a rule
- “There are a handful of factors that play a role in canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it.” — Google’s list includes HTTP vs HTTPSHTTPS is the encrypted version of HTTP — it uses TLS to authenticate the server and protect data in transit between a browser and a website. Google announced it as a lightweight ranking signal in 2014 and today conditionally prefers HTTPS pages as canonical; Chrome marks plain HTTP pages 'Not Secure.', redirectsA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't., sitemap presence, and
rel=canonicalannotations; “indicating a canonical preference is a hint, not a rule.” Jump to quote - “The canonical page will be crawled most regularly; duplicates are crawled less frequently in order to reduce the crawlingCrawling is how search engines use automated bots (like Googlebot and Bingbot) to discover URLs and download pages. A page has to be crawlable to be indexed, but crawling on its own isn't a ranking factor. load on sites.” Jump to quote
John Mueller, Google — March 2024, on switching canonicals www ⇄ non-www
- “This won’t cause problems with search visibility / rankings / indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed.: when the canonical URL switches, it just switches. You might see a little blip, but it goes to normal very quickly.” — John Mueller, on Reddit.
- “The only time it would cause bigger changes is if you switch canonicals to a different domain, and the domains have something different set up… with a www/non-www switch it’s all within the same domain and you should be fine.” — John Mueller, on Reddit. Both quotes are Mueller’s Reddit replies as reported by Barry Schwartz at Search Engine Roundtable (Mar 19, 2024); the original Reddit thread wasn’t independently re-fetched, so treat SERoundtable as the source of record.
John Mueller, Google — subdomains treated the same (supporting context, not www-specific)
- “In general, we see these the same… I would personally try to keep things together as much as possible… Use subdomains where things are really kind of slightly different.” — John Mueller, on subdomains vs subdirectories. Read the coverage This answers a content-organization question (subdomain vs. subdirectory for different content), not the www/non-www ranking question — cited only to show www is structurally a subdomain like any other, not as evidence for “no ranking difference.” That claim rests on the 2005 post and Mueller’s 2024 reply above.
Which one should you pick — and how?
There’s no SEO-right answer here, so this tree steers you by DNS/hosting reality and then hands you the enforcement steps. Start at the top.
Choosing www vs non-www (and setting it up)
Enforce your choice (do all of these)
www/non-www consolidation checklist
A pass to confirm one version is canonical and the other is cleanly redirected:
- One version chosen as canonical (www or non-www) — the choice driven by DNS/hosting reality, not an imagined SEO edge.
- DNS resolves the apex correctly —
A/AAAA, orALIAS/ANAME/ CNAME-flattening (a bareCNAMEat the apex is invalid and will be rejected). - A single 301 (permanent, not 302) from the non-preferred host to the preferred one, defined in exactly one place (no dueling rules → no redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. loop).
- Both hostnames present a valid TLS cert (SAN or wildcard covering www and non-www), so the redirect never trips a browser security warning.
- HSTSHSTS (HTTP Strict Transport Security) is a response header that tells browsers to always connect to your site over HTTPS — even when a user types or clicks an http:// link — closing the insecure-first-request gap that a plain 301 redirect leaves open. is coherent across both hosts — remember
includeSubDomainsflows parent → subdomain only. - Cookies set
Domain=example.com(not left host-only) before migrating, if sessions or preferences need to survive the switch. -
rel=canonicalon every page points at the chosen version. - XML sitemapAn XML sitemap is a UTF-8 file listing the canonical URLs on your site (with optional lastmod) so search engines can discover and prioritize them. It's a discovery and diagnostic aid, not a guarantee of indexing — and Google ignores its priority and changefreq tags. lists only the chosen version’s URLs — don’t submit both.
- Internal linksAn internal link is a hyperlink from one page on a website to another page on the same website. Internal links help search engines discover your pages and pass ranking signals (PageRank and anchor-text context) between them. use the chosen version consistently (no absolute links to the other host).
- No cookie-free assets subdomain spun up just for the obsolete HTTP/1.1-era reason.
- Google Search ConsoleA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results. — a Domain property added (covers all variants).
- Bing Webmaster ToolsMicrosoft's free portal for monitoring and improving how a site appears in Bing search — the peer to Google Search Console, plus IndexNow instant indexing, richer backlink data, and keyword volumes. Because Bing's index also feeds Microsoft Copilot, it doubles as a window into AI-search visibility. — variants verified as separate properties.
- You’re not planning to switch a working setup for SEO — there’s no gain.
www vs non-www — cheat sheet
The decision at a glance
| Question | Answer |
|---|---|
| Does it affect rankings? | No — Google, consistently since 2005. |
| What kind of decision is it? | CanonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. + consistency, driven by DNS/hosting. |
| Is www a subdomain? | Yes — same kind of thing as blog. or shop.. |
| Is there still a GSCA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results. “Preferred domain” setting? | No — removed June 18, 2019. |
| What replaced it? | rel=canonical + sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. (one version) + a 301 from the other. |
| Is a canonical a guarantee? | No — it’s a hint, not a rule; all signals must agree. |
| Why do sites default to www? | DNS: a CNAME can’t sit at the apex; www can. |
| 301 or 302 for the redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't.? | 301 — a 302 won’t consolidate. |
| Do both hostnames need a TLS cert? | Yes — the redirect-from host needs one too. |
| Does Bing have a preferred-domain toggle? | No — treats variants as separate properties. |
Apex vs www DNS reality
| Hostname | Can use CNAME? | What it needs |
|---|---|---|
www.example.com (subdomain) | Yes — CNAME straight to your CDN/host | Nothing special |
example.com (apex/bare/root) | No (invalid per RFC 1912/2181) | A/AAAA, or ALIAS/ANAME/CNAME-flattening |
Fast facts
- Preferred Domain removed: June 18, 2019 (and old configs no longer honored).
- CanonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. signals: ~40, and www/non-www is one of them.
- Cookie-free static domain: obsolete post-HTTP/2HTTP/2 and HTTP/3 are the modern versions of the HTTP protocol. HTTP/2 multiplexes many requests over one TCP connection; HTTP/3 swaps TCP for QUIC (over UDP) so a dropped packet only stalls the one stream it belongs to, not every stream (streams still share the connection's congestion control). Neither is a Google ranking factor — the SEO payoff is indirect, through faster real-user page speed. (HPACK + CDNs).
- Host-only cookies: don’t cross www ↔ non-www unless
Domain=example.comis set. - HSTSHSTS (HTTP Strict Transport Security) is a response header that tells browsers to always connect to your site over HTTPS — even when a user types or clicks an http:// link — closing the insecure-first-request gap that a plain 301 redirect leaves open.
includeSubDomains: propagates parent → subdomain only.
Redirect one version to the other
Pick a canonical version, then 301 the other to it. Config for the three common web servers — adjust the direction to match your choice.
Apache (.htaccess) — redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. non-www → www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]Apache (.htaccess) — redirect www → non-www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]Nginx — redirect non-www → www (a dedicated server block, so no per-request if)
server {
listen 443 ssl;
server_name example.com;
# This host still needs a valid cert, or the 301 never fires:
ssl_certificate /etc/ssl/example.com.pem;
ssl_certificate_key /etc/ssl/example.com.key;
return 301 https://www.example.com$request_uri;
}Nginx — redirect www → non-www
server {
listen 443 ssl;
server_name www.example.com;
ssl_certificate /etc/ssl/www.example.com.pem;
ssl_certificate_key /etc/ssl/www.example.com.key;
return 301 https://example.com$request_uri;
}IIS (web.config) — redirect non-www → www
<rule name="Redirect to www" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example\.com$" />
</conditions>
<action type="Redirect" url="https://www.example.com/{R:1}"
redirectType="Permanent" />
</rule>Keep the rule in one place only — a second rule pointing the other direction (in a plugin, CDN, or CMSA content management system (CMS) is software that lets users create, manage, and publish digital content — like blog posts and pages — without writing raw code. WordPress, Drupal, and Joomla are the most common open-source CMS platforms. setting) is the classic cause of a www/non-www redirect loop.
Verify the redirect and both certs
macOS / Linux — confirm a single clean 301 and that both hosts serve a valid cert:
# Follow the redirect chain — you want ONE 301 to the canonical host
curl -sIL https://example.com/ | grep -Ei 'HTTP/|^location:'
# Check the cert on the host you redirect FROM (must be valid, or the 301 never fires)
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
| openssl x509 -noout -subject -datesWindows (PowerShell)
# Inspect the redirect without auto-following it
Invoke-WebRequest -Uri "https://example.com/" -MaximumRedirection 0 `
-ErrorAction SilentlyContinue | Select-Object StatusCode, HeadersIf the Location header points at your chosen version with a 301, and both hosts
present a valid certificate, you’re done.
What not to do
Serving both versions with no redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't.. The one genuinely harmful outcome: every
page reachable at both www and non-www with neither consolidated. Now search
engines see duplicate URLs and have to guess a canonical. This — not the www/non-www
choice — is what causes problems.
Using a 302 instead of a 301. A 302 says “temporary.” You want the permanent consolidation and equity transfer of a 301. Reserve 302s for genuinely temporary moves.
Two redirect rules fighting each other. A rule in your CMSA content management system (CMS) is software that lets users create, manage, and publish digital content — like blog posts and pages — without writing raw code. WordPress, Drupal, and Joomla are the most common open-source CMS platforms. sends non-www → www while a CDN rule sends www → non-www — an infinite redirect loopA redirect loop is a chain of redirects that circles back on itself instead of ever reaching a live page — URL A redirects to B and B redirects back to A (or a longer cycle). No page ever returns a 200, so browsers show ERR_TOO_MANY_REDIRECTS and crawlers can't index anything. (“too many redirects”). Enforce the choice in exactly one layer.
Forgetting the cert on the redirect-from host. Redirecting www → non-www but
only certifying the bare domain means visitors to https://www. hit a security
warning before the 301 runs. Cover both hostnames.
Switching a working, consolidated setup “for SEO.” There’s no ranking gain, only the small risk of a botched redirect or a temporary blip. If it works, don’t touch it.
Chasing the old GSCA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results. Preferred Domain setting. It’s been gone since June 2019 and old configs are ignored. Following a tutorial that tells you to flip it wastes time and gives a false sense that the job is done — the real work is the 301 + canonical + sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing..
Spinning up a cookie-free assets subdomain for speed. That HTTP/1.1-era trick is obsolete post-HTTP/2HTTP/2 and HTTP/3 are the modern versions of the HTTP protocol. HTTP/2 multiplexes many requests over one TCP connection; HTTP/3 swaps TCP for QUIC (over UDP) so a dropped packet only stalls the one stream it belongs to, not every stream (streams still share the connection's congestion control). Neither is a Google ranking factor — the SEO payoff is indirect, through faster real-user page speed.; today the extra connection usually costs more than the removed cookie bytes save.
Mixing signals. A canonical tagA rel=\"canonical\" annotation — in the HTML <head> or an HTTP Link header — that tells search engines which URL is the preferred version of duplicate or near-duplicate content. pointing at non-www while your sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. and internal linksAn internal link is a hyperlink from one page on a website to another page on the same website. Internal links help search engines discover your pages and pass ranking signals (PageRank and anchor-text context) between them. point at www is a contradictory hint. Since canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. is a hint not a rule, make every signal agree.
Common hostname-canonicalization failures
Both hostnames return 200
Symptom: www.example.com/page and example.com/page load independently.
Likely cause: DNS points both hosts at the site, but no preferred-host redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. is
enforced. Fix: Choose the established host, permanently redirect the alternate
in one hop, and align canonicals, internal linksAn internal link is a hyperlink from one page on a website to another page on the same website. Internal links help search engines discover your pages and pass ranking signals (PageRank and anchor-text context) between them., and sitemapsA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing..
The alternate hostname shows a certificate error
Symptom: HTTPSHTTPS is the encrypted version of HTTP — it uses TLS to authenticate the server and protect data in transit between a browser and a website. Google announced it as a lightweight ranking signal in 2014 and today conditionally prefers HTTPS pages as canonical; Chrome marks plain HTTP pages 'Not Secure.' fails before the browser can follow the redirect. Likely cause: The certificate covers only the preferred hostname. Fix: Keep valid DNS and TLS coverage on the redirecting host; the HTTPSHTTPS is the encrypted version of HTTP — it uses TLS to authenticate the server and protect data in transit between a browser and a website. Google announced it as a lightweight ranking signal in 2014 and today conditionally prefers HTTPS pages as canonical; Chrome marks plain HTTP pages 'Not Secure.' connection must succeed before an HTTP redirect can be received.
Hostname requests loop or form a chain
Symptom: Requests bounce between hosts or pass through separate HTTP, HTTPS, hostname, and slash hops. Likely cause: CDN, origin, and application rules disagree about the destination. Fix: Define one final URL policy and make each alternate route directly to it at the earliest controlled layer.
Review a hostname migration plan
Paste the DNS records, certificate hostnames, redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. rules, canonical samples, sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. hosts, analytics configuration, and a representative URL map:
Audit this www/non-www migration plan. Identify contradictions between DNS, TLS,
redirects, canonicals, internal links, sitemaps, and measurement. For every issue,
state the observed evidence, the likely user or crawler impact, the exact check to
run, and whether it blocks launch. Do not claim one hostname has an SEO ranking
advantage. Return a pre-launch table and a post-launch verification sequence. Patrick's relevant free tools
- HTTP Status & Redirect Checker — Paste up to 500 URLs — status codes, full redirect chains, final destinations, per-hop and total latency, response-header evidence, canonical checks, and redirect-system clues. Filter, compare snapshots, and export CSV. No signup, nothing stored.
Tools for choosing and enforcing one hostname
- Redirect Chain Mapper — trace HTTP/HTTPSHTTPS is the encrypted version of HTTP — it uses TLS to authenticate the server and protect data in transit between a browser and a website. Google announced it as a lightweight ranking signal in 2014 and today conditionally prefers HTTPS pages as canonical; Chrome marks plain HTTP pages 'Not Secure.', www/non-www, slash, and path changes together so they can end at one URL in one hop.
- Canonicalization Checker — find pages whose canonical host conflicts with their response or final redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. destination.
- Redirect Checker — spot-check matching paths on both hostnames after a configuration change.
- DNS and TLS inspection tools — confirm both hostnames resolve and present valid certificates, including the hostname that exists only to redirect.
- A full-site crawlerA crawler — also called a spider or bot — is an automated program that fetches web pages, extracts their links, and queues new URLs to visit. Search engines use crawlers to discover and download content for their index. — locate internal linksAn internal link is a hyperlink from one page on a website to another page on the same website. Internal links help search engines discover your pages and pass ranking signals (PageRank and anchor-text context) between them., canonicals, hreflangHreflang is an annotation (in HTML, HTTP headers, or XML sitemaps) that tells search engines which language and optional region a page targets, and which alternate versions exist. It only works when every page in the cluster references all the others. annotations, and sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. URLs that still emit the alternate host.
Verify equivalent URLs on both hosts
Test to run: Submit matching www and non-www paths to the Redirect Chain Mapper. Expected result: The preferred host loads successfully and the alternate permanently redirectsA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. to the same path on the preferred host in one hop. Failure interpretation: Rules are missing, reverse direction, or discarding paths and queries. Monitoring window: Immediate after deployment. Rollback trigger: Redirect loopsA redirect loop is a chain of redirects that circles back on itself instead of ever reaching a live page — URL A redirects to B and B redirects back to A (or a longer cycle). No page ever returns a 200, so browsers show ERR_TOO_MANY_REDIRECTS and crawlers can't index anything., broad home-page redirects, or errors on the preferred host.
Verify TLS and emitted signals
Test to run: Connect to both HTTPSHTTPS is the encrypted version of HTTP — it uses TLS to authenticate the server and protect data in transit between a browser and a website. Google announced it as a lightweight ranking signal in 2014 and today conditionally prefers HTTPS pages as canonical; Chrome marks plain HTTP pages 'Not Secure.' hostnames, then crawl canonicals, internal links, and sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. URLs. Expected result: Both certificates validate and every emitted SEO signal uses the preferred hostname. Failure interpretation: The alternate cannot deliver its redirect or a template/configuration source still uses the old host. Monitoring window: Immediate for TLS; after a complete crawl for sitewide signals. Rollback trigger: Certificate errors or a large set of conflicting canonicals appears.
Test yourself: WWW vs. Non-WWW
Five quick questions on what the www/non-www choice actually is and how to enforce it. Pick an answer for each, then check.
Resources worth your time
My related writing
- Google Uses ~40 Canonicalization Signals — the broader picture www/non-www sits inside, including how Google weighs redirectsA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't., canonicals, and sitemapsA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing..
- Redirects for SEO: A Simple (But Complete) Guide — how to move between versions with 301s without losing equity.
- Trailing Slash: To Use or Not to Use? — the same “pick one, enforce it consistently” logic applied to another canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. signal.
- The Beginner’s Guide to Technical SEO — where canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. and hostname consolidation fit the bigger picture.
My speaking
- How Search Works (SlideShare) — my walkthrough of crawlingCrawling is how search engines use automated bots (like Googlebot and Bingbot) to discover URLs and download pages. A page has to be crawlable to be indexed, but crawling on its own isn't a ranking factor., renderingTurning HTML, CSS, and JavaScript into the final visual page and DOM., indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed., and ranking, the pipeline canonicalization feeds. (My standing disclaimer applies: “This is my understanding of systems… not going to be 100% complete or accurate.”)
From around the industry
- Bye Bye Preferred Domain setting (Google Search Central) — the June 2019 removal and its replacement, straight from the source.
- What is URL canonicalization (Google Search Central) — the “hint, not a rule” framing and the factors Google weighs.
- Google: Canonicalizing From WWW to Non-WWW Won’t Impact Your Search Rankings (Search Engine Roundtable, Barry Schwartz) — Mueller’s March 2024 “it just switches” reply.
- WWW vs. non-WWW: Which is Better for SEO? (Search Engine Journal, Winston Burton) — a good “no meaningful difference, pick one and 301 the other” overview.
- Why cant a domain’s root be a CNAME — and other tidbits about the DNS (freeCodeCamp) — the apex/CNAME constraint explained plainly.
- CNAME flattening (Cloudflare DNS docs) — how a provider fakes a CNAME at the apex.
- HSTS Redirects: WWW to non-WWW and HTTP to HTTPS (Sentinel Stand) — the certificate-and-HSTSHSTS (HTTP Strict Transport Security) is a response header that tells browsers to always connect to your site over HTTPS — even when a user types or clicks an http:// link — closing the insecure-first-request gap that a plain 301 redirect leaves open. gotcha when you redirect between hosts.
WWW vs. Non-WWW
WWW vs. non-WWW is the choice between serving a site from www.example.com (the www subdomain) or example.com (the bare/apex/root domain). Both point to the same content, so it's a canonicalization and consistency decision, not a ranking factor.
Related: Canonicalization, URL Structure, 301 redirect
WWW vs. Non-WWW
WWW vs. non-WWW is the decision about which hostname is the authoritative home for your site: www.example.com — where www is technically a subdomain, exactly like blog. or shop. — or example.com, the bare (also called apex or root) domain. Both usually serve the same pages, which is why the choice is a canonicalizationHow search engines pick one canonical URL among duplicates and consolidate signals onto it. question — telling search engines which single version to treat as canonical — rather than an SEO lever.
Google has said consistently since 2005 that neither version ranks better than the other. The old Google Search ConsoleA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results. “Preferred domain” setting that used to let you declare a preference was removed in June 2019; the replacement is a bundle of consistent signals that all point the same way — a rel=canonical, sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. URLs limited to the chosen version, and a 301 redirectA 301 redirect is the HTTP status code for a permanent move: it tells browsers and search engines a URL has moved for good, and it's the strongest signal for consolidating a page's ranking signals onto the new URL. Google says permanent redirects don't cause a loss in PageRank. from the version you didn’t pick.
The reason so many sites end up on www isn’t SEO or branding — it’s DNS. A CNAME record can point www straight at a CDN or host, but the DNS spec won’t allow a CNAME at the zone apex, so the bare domain needs an A/AAAA record or a provider-specific ALIAS/ANAME/CNAME-flattening record instead. Whichever version you redirectA redirect sends browsers and crawlers from a requested URL to a different one. An HTTP redirect specifically is a 3xx status code paired with a Location header; meta refresh and JavaScript redirects achieve a similar navigation without being a 3xx response themselves. Permanent redirects (301/308) are Google's signal the target should be canonical; temporary ones (302/303/307) aren't. from also needs its own valid TLS certificateAn SSL/TLS certificate is the file a server presents during the TLS handshake to prove who controls the domain (to a level that depends on the validation type) and to supply the public key that encrypts the connection. It's what makes https:// possible — but Google's ranking signal only checks the URL scheme, not which certificate issued it., or visitors hit a browser security warning before the redirect can fire. The practical rule is simple: pick one, 301-redirect the other, and keep internal linksAn internal link is a hyperlink from one page on a website to another page on the same website. Internal links help search engines discover your pages and pass ranking signals (PageRank and anchor-text context) between them., canonicals, and your sitemapA sitemap is a file that lists the pages, images, videos, and other files on your site so search engines can discover them. It helps discovery, but submitting a sitemap doesn't guarantee crawling or indexing. consistent with the winner.
Related: Canonicalization, URL Structure, 301 redirect
Build-time retrieval analysis plus live signals for this exact article. The automatic chunk report includes a deterministic readiness score and is ready without a model download.
Search Console
sampleGA4 traffic (28d)
sampleCloudflare traffic (7d)
sampledCrUX field data (28d, phone)
sampleGoogle NLP entities
localChangelog
Updated Jul 18, 2026.
Editorial summary and recorded change details.Summary
Added the cookie-scope consequence of hostname choice (host-only vs. Domain-scoped cookies, with a migration continuity step), separated Mueller's subdomain/subdirectory quote from the www/non-www ranking evidence so it no longer looks like support for a claim it doesn't make, and made explicit that hostname consistency doesn't guarantee rankings, traffic, or AI citations.
Change details
-
Added an Advanced-lens section on host-only vs. Domain-scoped cookies (RFC 6265) plus a migration step, checklist item, decision-tree note, and cheat-sheet fact covering the same point.
-
Rewrote the subdomain/subdirectory paragraph in the Advanced lens (and its Quotes-lens footnote) to stop citing Mueller's subdomain-vs-subdirectory quote as evidence for the www/non-www no-ranking claim; it now points to the direct www-specific evidence instead.
-
Added a sentence denying that hostname consistency guarantees rankings, traffic, or AI Overview/chatbot citations.
Full comparison unavailable — no prior snapshot was archived for this revision.