Neither www nor non-www has an inherent SEO advantage. Choose the hostname that fits the site's infrastructure, permanently redirect the alternate hostname, cover both with valid certificates, and use the preferred host consistently in links, canonicals, sitemaps and metadata.
- WWW and non-WWW are separate hostnames even when they serve the same site.
- Both hostname styles can perform normally in search.
- The alternate hostname should redirect directly to the preferred hostname.
- The Change of Address tool is not used for a www-to-non-www move.
01
Definition

These are separate hostnames:
https://www.example.com/
https://example.com/They can serve the same site; different sites; a redirect; an error; or different infrastructure.
Search systems do not receive a mystical certificate stating that the two must be equivalent merely because humans refer to both as “the domain.”
Neither form has an inherent SEO advantage.
The hostname is part of the URL’s origin. DNS, TLS and the web server can therefore make the two forms behave differently even when the page paths look identical. Equivalence must be implemented and tested; it is not inferred from branding.
The choice is primarily architectural: DNS management; cookie scope; CDN configuration; existing links; brand conventions; application routing; subdomain strategy; and historical canonical signals.
Once selected, the site should consistently expose one public form.
02
Mechanism
Choose either:
Preferred: https://www.example.com/
Alternate: https://example.com/or:
Preferred: https://example.com/
Alternate: https://www.example.com/Then align these systems.
DNS
Both hostnames must resolve to infrastructure capable of producing the intended response.
The alternate host cannot redirect reliably if it does not resolve.
TLS certificates
The certificate must cover both hostnames.
A user may request the alternate HTTPS hostname before receiving the redirect. TLS negotiation occurs before the browser can receive an HTTP response.
Permanent redirect
Redirect every alternate-host path to the corresponding preferred-host path.
https://example.com/about
→ https://www.example.com/aboutDo not redirect every alternate-host page to the homepage.
Google describes redirects as strong canonicalization signals and recommends linking internally to the canonical form. How to specify a canonical URL with rel=canonical and other methods[2]
Self-canonical
Preferred-host pages should use absolute self-canonicals:
link rel="canonical" href="https://www.example.com/about"Do not serve a preferred www page that canonicalizes to non-www.
Internal links
Generate only the preferred host in:
- Navigation
- Breadcrumbs
- Article links
- Structured data
- Hreflang
- Open Graph
- Feeds
- Sitemaps
- Downloads
- Forms
Root-relative internal links are also acceptable when the application guarantees the correct preferred host.
Search Console
Verify relevant variants for troubleshooting and historical comparison.
Do not use Change of Address for a move between www and non-www. Google’s current tool documentation excludes that case and instructs sites to use redirects and canonical signals instead. Change of Address tool[1]
03
Examples
Keep existing www
A mature site already has most links and indexed URLs on:
https://www.example.com/Keeping www avoids an unnecessary sitewide URL change.
Configure:
https://example.com/path
→ https://www.example.com/pathMove to non-www
A site standardizes on:
https://example.com/Configure:
https://www.example.com/path
→ https://example.com/pathUpdate all internal and metadata references.
Both hosts return 200
This creates duplicate accessible URLs:
https://example.com/page
https://www.example.com/pageA canonical may help consolidate them, but a direct redirect produces a clearer single-host system when the alternate host has no independent purpose.
Different content on each host
If the two hosts intentionally serve different sites, do not canonicalize or redirect them merely because their names are related.
Each host needs:
- Distinct purpose
- Accurate canonicals
- Appropriate navigation
- Independent content identity
Document the host decision where DNS, CDN and application owners will find it. The record should name the preferred hostname, all alternate hostnames, certificate coverage, redirect ownership and the systems allowed to generate public URLs. Without that record, a later infrastructure change can quietly restore duplicate 200 responses even though the application’s canonical tags remain correct.
Test the decision from outside the production network and after caches expire. For representative paths, request every HTTP and HTTPS host variant, retain the path and query string, and confirm that each alternate reaches the preferred URL without a loop or intermediate hop. Repeat the check for a missing page and a static asset so catch-all rules do not disguise incorrect behavior. Then search templates, feeds, sitemaps, structured data and outbound notifications for the alternate hostname. This turns “we prefer www” or “we prefer the apex” from a convention into a verifiable routing contract.
Include host normalization in routine monitoring. A small synthetic test can request both variants of several stable paths and alert when the alternate stops redirecting or the preferred host stops serving the expected page. Also review newly created DNS records and CDN aliases before they become public. These controls matter because hostname duplication often returns through infrastructure work long after the original SEO project closes. The lasting outcome is one documented, observable public host, not a one-time redirect that happened to pass on launch day.
04
Boundaries
Do not combine a host normalization project with an unrelated domain migration unless the combined mapping has been deliberately tested.
Check HTTP www; HTTP non-www; HTTPS www; HTTPS non-www; alternate ports; subdomains; international hosts; mobile hosts; CDN aliases; and preview hostnames.
The ideal result for one page is:
http://example.com/page
http://www.example.com/page
https://example.com/page
↓
https://www.example.com/pagewith no chain.
Use HTTP to HTTPS SEO Migration for protocol cleanup and Trailing Slash SEO for path normalization.
The important decision is not whether www looks modern. It is whether every system agrees on one public hostname.
References
Sources behind this record
- Change of Address tool — Google (accessed July 30, 2026)
- How to specify a canonical URL with rel=canonical and other methods — Google (accessed July 30, 2026)
Corrections
Correction history
No corrections recorded.
To report an error, use the public corrections path.
Hostname choice can affect DNS and infrastructure design, but it does not create a universal ranking advantage for either www or non-www.