Privacy

WWW or non-WWW: choose a canonical website address and verify both routes

Choose and keep one public hostname, then verify DNS routing, HTTPS, page-preserving redirects, canonical signals and Search Console evidence.

Made by Pagember · Editorial policy

Primary sources + editorial analysisPublished Updated Sources

The short answer

Neither www nor non-www has an SEO advantage, so for an established site keeping the working hostname is usually the practical choice. Make both hostnames reach the intended site with valid HTTPS, then permanently redirect each alternate page to the matching page on your preferred address. Use that address consistently in internal links, sitemaps and canonical tags.

On this page10 sections

Neither www nor non-www has an SEO advantage. Choose one public website address, then make the other version redirect to it permanently. For an established site, keeping the working version is usually the practical starting point. Adding or removing www is not a substitute for useful content, accessible pages and consistent links.

Two website hostname entrances converging on one secure canonical destination.

This guide uses official Google, Mozilla and certificate documentation checked on October 13, 2026. The business examples are hypothetical.

Understand the two addresses

https://example.com/ and https://www.example.com/ use different hostnames. You can configure them to reach the same website, but they can also point to different applications or projects. Treat their setup as something to verify, rather than assuming a browser will add or remove www for you.

The preferred or canonical URL is the version you intend to use consistently. Google may choose a canonical when substantially similar content is available at multiple addresses. Your redirects, annotations and other signals can indicate a preference; they do not give you an unconditional command over Google's selection. See Google's canonical URL guidance.

For a small new site, choose the version your platform supports cleanly and use it in navigation and public materials. For an established site, review its current final URL, internal links and indexed information before changing anything. A cosmetic preference alone may not justify another migration.

Keep these four decisions separate

Domain registration
Who controls example.com and renews it?
DNS and platform routing
Where do example.com and www.example.com each lead?
HTTPS
Can both hostnames establish a valid secure connection?
Canonical website address
Which version serves the page, and which redirects?

A registration purchase does not answer every routing question. An email address at example.com also does not mean the website must use either particular hostname. Our domain versus hosting guide explains the underlying separation.

Check the existing behavior before choosing

Open the site's current homepage and one important inner page with and without www. Record the final browser address, visible content and any error. Then inspect the relevant platform's domain settings to identify the intended primary address.

Suppose a repair business already uses https://www.example.com/services/ in its navigation, customer messages and public profiles. If that route is working, first make the non-www version reach the same service page. Reversing the established preference simply because another site omits www adds work without demonstrating a business benefit.

If the two hostnames show different sites, pause. Confirm the domain and intended project before creating redirects. A redirect can hide an accidental project assignment from casual inspection while leaving the underlying account or hosting error unresolved.

Configure both hostnames at the correct layer

Follow the website platform's specific domain instructions at the provider hosting the authoritative DNS. Keep a record of the existing configuration and confirm the target project. Do not replace working email records or nameservers merely to choose a website hostname; a separate mail or DNS migration requires its own plan.

A DNS alias and an HTTP redirect do different jobs. DNS can direct a hostname toward a service; the web service must still decide what response to return. Mozilla's HTTP redirect explanation describes the redirect response that tells a browser to request another URL.

If a platform offers a primary-domain control, check whether it also configures the alternate hostname and its redirect. If a host, CDN and application each have redirect rules, give them the same destination. Maintain one understandable policy instead of several layers trying to undo one another.

HTTPS must work before relying on the redirect

Check certificate coverage for both hostnames you expect visitors to use. Mozilla explains that TLS server authentication binds a server's certificate to its domain name. A broken secure connection at the alternate HTTPS address cannot be repaired by assuming the visitor will reach a later HTTP redirect. See TLS server authentication.

Certificate names matter: Let's Encrypt's certificate glossary explains Subject Alternative Names and notes that a wildcard for *.example.com covers www.example.com but not example.com itself. Inspect actual coverage rather than relying on a “wildcard” label.

Do not ask visitors to bypass a certificate warning. Resolve the affected hostname's certificate and hosting configuration, then repeat the test. The homepage working securely at your preferred hostname does not prove that a saved alternate address is safe to open.

Redirect matching pages to the chosen version

For a permanent choice, Google recommends a server-side permanent redirect where possible; HTTP 301 and 308 identify permanent moves. See Google's redirect guidance. Use a supported platform or server method rather than copying a rule intended for a different installation.

If www is preferred, the non-www /services/ address should reach the www /services/ page, not the homepage. If non-www is preferred, apply the same relationship in the other direction. Keep the requested page path and required query parameters intact where appropriate.

For a simple setup, aim to send an alternate HTTP or HTTPS URL directly to the final preferred HTTPS destination. Check the actual response chain: extra hops can come from separate www, HTTPS and trailing-slash rules. Avoid a loop where one layer adds www and another removes it.

Start with an inner page and a harmless query parameter. To see every hop, run this for each of the four routes (http and https, with and without www):

curl -sIL "http://example.com/services/?test=1" | grep -iE "^(HTTP|location)"

A clean result is one 301 or 308 straight to https://www.example.com/services/?test=1 followed by 200. Two redirects, such as http to https and then to www, still work but add a hop you can usually merge into one rule. Then open the final page's source and check that its canonical tag names the same hostname without the test parameter. A clean chain does not tell you which version Google indexed; URL Inspection does that.

Make discovery signals consistent

Use the preferred HTTPS address in internal links, sitemap entries and canonical metadata. Google's canonical guidance warns against conflicting preferences across those methods and recommends linking consistently to canonical URLs. If a page has a canonical annotation, it should identify that page's appropriate preferred URL.

Do not canonicalize every article to the homepage: that describes a different relationship from choosing one hostname for each article. Equally, using noindex or blocking crawling on the alternate hostname is not a replacement for a correct redirect and canonical policy.

Check important public profile links and campaign destinations you control. Updating them reduces dependence on redirects, while the alternate hostname should remain supported for bookmarks and existing external links. Printed QR codes are the hardest to change later, so point them at the preferred address; see keeping website QR codes working.

Spare domains, old brand names and misspellings follow the same rule: send them straight to the preferred hostname. Redirecting extra domains to one website covers that setup without breaking their email.

Use Search Console to observe, not to force the prefix

Search Console no longer has the old Preferred Domain setting. Google retired it in 2019 and directs owners to canonical signals. Ignore instructions that require finding that obsolete control.

A Domain property includes protocols and subdomains, including www and non-www. A URL-prefix property covers its specified prefix. Choose the scope you need and follow its verification requirements; adding a property does not configure a website redirect. See Search Console property types.

For an important page, URL Inspection's indexed data can show the user-declared and Google-selected canonical. Compare its crawl date with your change. A live test checks current accessibility and detectable issues, but cannot guarantee future canonical selection. See the URL Inspection guide.

Google's current move documentation says Change of Address is not required when switching between www and non-www on the same domain. That is distinct from moving to another registered domain, which changing your WordPress domain covers step by step.

Run a small acceptance test

  • Test HTTP and HTTPS for both hostnames, at the homepage and one inner page.
  • Confirm the preferred HTTPS page serves the intended content without redirecting back.
  • Confirm the alternate versions reach the matching final page without a certificate warning or loop.
  • Inspect an important page's canonical and sitemap entry for the same preferred hostname.
  • Check an essential form and any other workflow that depends on the public address.

Wrong site: inspect project assignment and routing. Certificate warning on one version: inspect its coverage. Loop: compare redirect layers. Google still shows another version: inspect the stored crawl and conflicting signals before making another change.

Keep the decision recorded with the domain's operating notes and review it when changing platforms. Choose one reliable address, preserve the other route and verify the result at real pages. That gives readers a consistent way to reach the site without treating a prefix as an SEO shortcut.