Skip to content
Enjoy 20% off for 12 months on all plans. Use promo code: HYPERGROWTHClaim it

WWW or Non-WWW: Which One Actually Helps Your SEO?

By Toy Wen Da, Co-Founder · Updated · 16 min read · scored 94/100

Neither www nor non-www ranks better on its own. The choice is a formatting decision with no ranking effect. What hurts your SEO is letting both versions exist unmanaged, because Google can end up treating www.yoursite.com and yoursite.com as two separate websites that compete against each other instead of one strong site.

Diagram of the www and non-www versions of a domain and the choice between them

It's a more common problem than most site owners realize. If you've ever been unsure which property to verify in Google Search Console, or noticed your backlink count looks lower than you expected, a www/non-www mismatch is often the quiet cause. This guide covers what the prefix does, why search engines care about consistency rather than the prefix itself, and how to fix a site that's split across both versions.

What Do www and Non-www Domains Actually Mean?

The difference is cosmetic at the URL level. A www domain looks like www.example.com. A non-www domain, sometimes called the "naked" or "root" domain, drops the prefix and reads as example.com.

Technically, www has always been a subdomain rather than a required part of the address. Most hosting setups today point both the root domain and the www subdomain at the same server, so either one loads your site. RFC 3986, the IETF specification that defines how web addresses are structured, treats www as an ordinary subdomain label with no reserved meaning. This is why the question feels like a coin flip: a visitor typing either one usually ends up in the same place.

Behind the scenes it's different. Search engines don't automatically know the two addresses belong to the same business, so without instruction they can index both, crawl both, and split authority between them. That is the actual SEO issue hiding inside what looks like a branding decision.

Side-by-side browser address bars showing www.example.com and example.com loading the same homepage

Where the www Prefix Came From

Diagram of separate servers labeled www, mail and ftp, showing the prefix as a service label

The "www" prefix dates back to a time when the internet ran on separate, purpose-built servers. Before shared hosting providers existed, a company running its own infrastructure needed a way to label which server did what. A server handling web pages was labeled www, one handling email was labeled mail, and one handling file transfers was labeled ftp, so the prefix told you which service you were connecting to.

The convention outlived its technical purpose. Modern hosting and DNS can point a bare root domain and a www subdomain at the same server, so the original reason for the prefix mostly disappeared decades ago.

Browsers have changed how it's displayed, too. Chrome and Safari both hide the "www." in the address bar by default, which is part of why so few people notice whether a brand uses it. Amazon, for example, is registered as a www site, but typing amazon.com without it still loads the storefront normally. The prefix survives as a legacy convention, though the plumbing behind it (DNS records, CNAME setup, cookie scope) still matters, which is why it keeps coming up in technical SEO conversations.

Why the history still matters for SEO decisions

Because the prefix is a holdover, there's no "correct" default anymore. The decision rests on your site's technical needs: subdomains, content delivery networks and cookie handling. Later sections show which setups favor which format.

Does www vs Non-www Affect SEO?

Diagram of Google's crawler treating www and non-www as two distinct URLs unless they are linked

Directly, no. Search engines don't rank one format above the other. What matters is whether you've told them which version is canonical.

Google's crawlers treat www.yoursite.com and yoursite.com as two distinct URLs unless you explicitly link them. Left alone, both can get indexed, and then you're managing two websites in Google's eyes, with ranking signals split that would otherwise consolidate into one strong page.

It's the same mechanism covered in most technical SEO audits. Search engines reward clarity and consistency, and a site that sends mixed signals about its own structure gets harder for them to interpret. A www/non-www mismatch is one of the more common examples, alongside inconsistent trailing slashes or mixed HTTP/HTTPS URLs.

The Real SEO Issues When Both Versions Stay Live

Running both www.yoursite.com and yoursite.com without a declared preference creates three concrete problems, and all of them show up in crawl reports and backlink tools the moment you check.

Duplicate content

Search engines flag pages as duplicates when the content is identical or nearly identical across two URLs. If both your www and non-www homepage are live and indexed, you've technically duplicated every page on your site. Google's documentation on consolidating duplicate URLs is explicit that it will try to pick a winner on its own, but letting an algorithm guess instead of telling it directly is a bad habit to build into your SEO foundation.

Wasted crawl budget

Every search engine allocates a limited amount of crawling capacity to your site. If the bot has to crawl both versions of every page, it spends twice the effort on the same content. Google's large-site crawl budget documentation notes that crawl budget is mostly a concern for sites with a large number of pages that change frequently, not small brochure sites. On a larger catalog or content library, though, your newest or most important pages can get crawled less often because the budget went to duplicate URLs. A proper technical SEO audit is built to catch this before it compounds.

This is the one that costs real money. If another site links to www.yoursite.com/guide but you've been building your brand around yoursite.com, that backlink's authority sits with the www version and doesn't automatically transfer. As different sites link to whichever version they happened to find, your link equity spreads across two addresses instead of consolidating behind one. If you're building links as part of a B2B backlink strategy, an unmanaged split quietly wastes a share of that outreach effort.

Left long enough, these issues add up to a drop in visibility that's hard to trace to its cause. If your traffic has been flat or declining and you can't pin down why, read what low search visibility actually costs a business, since a split domain is one of the more overlooked contributors.

A crawl budget report showing duplicate URL pairs for www and non-www versions of the same pages

What a real split costs: a worked example

Diagram of backlinks divided between a www property and a non-www property, each showing only part of the total

Picture a 150-page B2B site that launched five years ago on the www version, then switched CMS platforms last year without anyone checking the new platform's default domain setting. The new CMS defaulted to serving the non-www version with its own 200 status code (not a redirect), while the old www version stayed live and indexed because nobody removed the DNS record pointing to it.

Eighteen months in, a backlink audit turns up 340 external links pointing at the www version and 210 pointing at the non-www version, spread across two properties in Google Search Console that should have been one. Neither property shows the full picture. The www property's Links report undercounts the non-www backlinks and vice versa, so anyone judging the site's authority from either dashboard alone sees roughly half the backlink profile it actually has.

Google's documentation explains why scale matters here: crawl budget is shaped by crawl demand and crawl health signals, not by how many URL variants of the same content you happen to serve, per the crawl budget guidance for large sites cited above. A five-page local business site rarely notices a split, while a 10,000-page e-commerce catalog or publisher can see real crawl coverage gaps from it.

The fix in this scenario took under two hours: a single 301 redirect rule at the DNS/CDN level catching inbound requests to the non-canonical version, a sitemap resubmission, and a Search Console domain property switch. Rankings held steady through the change because Google treats 301s as a strong, directive signal rather than a soft hint, as Google's own documentation on 301 redirects confirms. The backlink dilution took longer to resolve, since external sites don't update their links just because you've redirected, but the redirect itself stopped the bleeding immediately.

www vs Non-www: Pros and Cons

Diagram weighing the technical trade-offs of www against non-www

Neither format is universally better. Each trades off differently depending on your technical setup.

Factor www Domain Non-www Domain
Cookie control Can scope cookies to the www subdomain only, keeping them separate from other subdomains No way to restrict cookies to just the root domain, they apply site-wide
CDN setup Easier to configure a CNAME record for content delivery networks Harder to use a CNAME on a bare root domain without disrupting mail and FTP records
Subdomain management Better suited to sites running several subdomains (shop, blog, app) alongside the main site Simpler structure, but more friction if you later add multiple subdomains
Branding and memorability Slightly longer to say and type, though browsers now hide it visually Shorter, cleaner, and easier to say out loud in ads or interviews
Technical flexibility More DNS flexibility for complex, enterprise-scale setups Fewer configuration options but less to maintain
Best suited for Larger platforms, SaaS products, sites with multiple subdomains Small businesses, personal brands, single-domain sites

No column lists an SEO advantage because the format carries none. The differences are operational: cookie scope, CDN flexibility and subdomain structure.

How to Set Your Preferred Version: Redirects and Canonical Tags

Once you've picked a version, you need to tell search engines and your own infrastructure which one is authoritative. You have two real options, a server-side 301 redirect or an HTML canonical tag, and they behave differently.

Setting up a 301 redirect

A 301 redirect is the stronger, more reliable option. It works at the server level, so when someone requests the non-preferred version, the server sends them and any crawler to the preferred one. Because the redirect is permanent, link equity from backlinks pointing at the old version passes through to the new one, and Google's own documentation on 301 redirects treats it as a directive signal rather than a hint. That's why it's the recommended fix over a canonical tag alone.

For Apache-based hosting, this is typically done by editing the .htaccess file in your site's root directory. To redirect non-www to www:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourwebsitehere.com
RewriteRule (.*) http://www.yourwebsitehere.com/$1 [R=301,L]

To redirect www to non-www instead:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.yourwebsitehere\.com
RewriteRule (.*) http://yourwebsitehere.com/$1 [R=301,L]

Most modern content management systems have a built-in setting or plugin for this, so you rarely need to hand-edit server files. Either way, confirm the change applies to every page and not just the homepage, because a redirect that only catches the root URL leaves every inner page duplicated. Partial fixes like this are a common finding in broader technical SEO fixes work, where one overlooked rule quietly undoes an otherwise correct setup.

Adding a canonical tag

If you can't implement a server-side redirect (shared hosting with limited access is a common reason), a canonical tag is the fallback. You add a line like this to the <head> of every page on your non-preferred version:

<link rel="canonical" href="https://www.example.com/page01" />

The tag tells search engines which URL to treat as the "real" one among near-duplicates. It's a strong hint rather than an instruction, and Google can override it when other signals such as your sitemap, internal links or backlink profile point a different way. For that reason a full canonical tag fix for duplicate content usually pairs the tag with consistent internal linking.

Which should you use?

Method Reliability Passes Link Equity Best For
301 redirect Treated as a directive by search engines Yes, directly Sites with server or CMS-level access
Canonical tag Treated as a strong suggestion, can be overridden Indirectly, if Google honors the tag Sites without redirect access, or as a backup signal

If you have the access, use the redirect as your primary fix and add a canonical tag on top as a second signal. It costs nothing and reinforces the same preference.

Code editor showing a .htaccess file with a 301 redirect rule from non-www to www

Best Practices to Keep Your Setup Consistent

Diagram of a checklist for keeping redirects, internal links and sitemap pointing at one version

Choosing a version and setting a redirect is only step one. The setup erodes over time if nobody watches it, usually through small inconsistencies rather than one dramatic mistake.

  • Set your preferred domain in Google Search Console so you have a clear record of which version you've committed to, and can monitor both properties for crawl errors.
  • Audit your internal links. Every one should point to your preferred version, since a site that redirects to www but still links internally to non-www pages sends Google mixed signals from inside its own code.
  • Check your sitemap.xml. Sitemap URLs should match your canonical version exactly, because a sitemap still listing the old format undercuts a redirect you've already set up correctly.
  • Reach out about inconsistent backlinks where it's practical. You can't fix every external link, but for high-value partners or directories it's worth asking them to update to your preferred version.
  • Re-run a crawl after any migration, replatform or CMS switch. These are the moments a mismatch most often creeps back in, usually because a new system defaults to its own setting.

A periodic check with a free SEO tool is a fast way to catch a slipping redirect before it costs you rankings: type both versions of your domain in and confirm only one resolves without a redirect chain. The same kind of tool can also show which version of your domain appears in search results and how your backlink profile is distributed between the two.

A quick self-check

To see whether your site is already split, open an incognito browser window and type your domain in both formats, once with www and once without. If you land on the same URL both times with no visible redirect delay, you're likely set up correctly. If the address bar changes or you see two different-looking pages, go fix the redirect.

Fixing It on the Platform You Actually Use

Diagram of where a 301 redirect rule lives on different platforms, from CMS settings to the DNS or CDN layer

The advice to "set up a 301 redirect" looks different depending on what runs your site. Here are the most common setups.

WordPress. Go to Settings > General and confirm the "WordPress Address (URL)" and "Site Address (URL)" fields both use your preferred version. That alone doesn't force a redirect for existing visitors on the old URL, so pair it with a redirect rule in your .htaccess file (if you're on Apache) or a plugin like Redirection, which lets you set a single wildcard rule instead of per-page entries.

Shopify. Under Online Store > Domains, click the domain you want as primary and select "Set as primary." Shopify automatically 301-redirects every other connected domain and domain variant to the primary one, so there's no separate redirect rule to write.

Webflow and similar site builders. In the project's hosting settings you'll typically see one field for the "default domain" among the domains you've connected. Whichever one you mark as default receives an automatic 301 from the others. Check the platform's settings panel directly rather than assuming, since defaults vary by builder.

DNS or CDN level (Cloudflare, etc.). If your CMS doesn't offer a built-in setting, a redirect rule or "Page Rule" at the DNS/CDN layer works on any platform underneath it, since it intercepts the request before it reaches your origin server. It's also the right layer if you're running a static site with no server-side logic of its own.

Whichever layer you use, test it the same way afterward. Request both versions over both HTTP and HTTPS and confirm each lands on a single final URL after one redirect hop, not a chain of two or three. A multi-hop chain still works for visitors, but it adds latency and is one more thing that can silently break during a future migration.

www or Non-www: Which One Should You Actually Choose?

For a brand-new site with no existing backlinks or indexed pages, the decision is low-stakes, so pick based on your technical roadmap and not on SEO. For an established site already indexed under one version, switching is possible but adds migration risk. Most owners are better off keeping the current version and making sure it's set as canonical everywhere.

Beyond that, your use case tends to point toward one option.

Use Case Better Fit Why
High-traffic platform with a CDN www Easier CNAME setup for content delivery without disrupting root-domain mail or FTP records
Site with multiple subdomains (app, shop, blog) www Cookies can be scoped to one subdomain instead of applying across the whole domain
Small business or personal brand Non-www Shorter, easier to say in ads, interviews, and word-of-mouth referrals
Site planning to add subdomains later Non-www with a subdomain strategy reviewed in advance Subdomain cookie conflicts are easier to plan around than retrofit
Agency managing many client domains Whichever matches each client's existing setup Consistency per site matters more than standardizing across a portfolio

The last row deserves a closer look. Agencies juggling a dozen or more client sites rarely get to pick one format and apply it everywhere, because each client's domain history, backlink profile and CMS constraints usually decide it site by site. What they need is a fast, repeatable way to audit each setup rather than relitigating the www question every time. If that's your situation, see how SearchBlueprint's agency workflow handles this kind of cross-client technical check at scale.

A side-by-side comparison chart of www and non-www use cases for different business sizes

Putting It Into Practice

Diagram of four implementation steps: redirect, canonical tag, sitemap and internal links, Search Console preference

Once you know which version you're keeping, implementation is short: set the redirect, add the canonical tag as backup, update your sitemap and internal links, and set your preferred domain in Search Console. None of these steps is hard on its own. The difficulty is remembering to do all four and checking them again after every site change.

That's where many site owners lose track of their setup. A redesign, a new plugin or a platform migration can quietly reset a redirect rule, and nobody notices until rankings start slipping for no obvious reason. Seeing your site's technical issues laid out clearly, instead of guessing which fix to chase first, is what SearchBlueprint's SEO plan is built to show you before you start making changes.

FAQs

Does www or non-www affect page load speed?

Not meaningfully. Any speed difference you notice comes from server configuration, caching or CDN setup, not from the presence or absence of the www prefix.

Can I switch from www to non-www (or vice versa) without hurting my rankings?

Yes, but treat it as a migration and not a quick setting change. Set up 301 redirects for every URL, update your sitemap and internal links, and expect a short adjustment period in Search Console while Google re-crawls and re-indexes the new version.

What happens if I don't set a preferred version at all?

Google will try to pick one for you based on signals like backlinks and internal linking, but you lose control over which version wins. In the meantime both versions can get indexed, and your SEO value is divided between them.

Is a canonical tag enough on its own, or do I need a redirect too?

A canonical tag alone can work, but it's a hint search engines can override. A 301 redirect is more reliable because it's enforced at the server level rather than suggested in the page code.

Do big brands all use the same format?

No. Some major sites use www (Amazon is one example) while others run non-www. What they share is that each picked a version and keeps every redirect, sitemap entry and internal link pointed at it.

Does this apply the same way to ccTLDs and international sites?

Yes. The same logic applies whether your domain ends in .com, .co.uk or another country-code extension: pick one version, redirect the other, and keep it consistent across every regional domain you run.

Is a subdomain like blog.example.com the same issue as www vs non-www?

Not quite. www is conventionally treated as the "default" subdomain for the main site, while blog.example.com or shop.example.com are distinct subdomains serving different content, so they don't need to resolve to the same page. The www/non-www question only applies to the two addresses that serve your actual homepage and core site.

Check Your Own Setup Before It Costs You Rankings

Diagram of a site audit checking which version is canonical and whether redirects catch every page

Whether you've settled on www or non www, a split rarely announces itself. It quietly divides your backlinks and confuses crawlers until your traffic plateaus for reasons that aren't obvious from the outside. If you're not certain which version your site serves as canonical, or whether your redirects catch every page, talk to the team and get a sample SEO report that shows exactly where your setup stands.

See what this looks like on your own siteEnter your website. You get the searches your buyers make and the page that should answer each one.

Resources / References

Illustration of reference documents and specifications cited in this guide
  1. Google's own documentation on consolidating duplicate URLs
  2. RFC 3986
  3. large-site crawl budget documentation
  4. Google's own documentation on 301 redirects

Sources

About the author

SearchBlueprint researched, wrote and scored this article with the content pipeline our customers run on their own sites. The score in the byline is what our content engine gave this page before it published. Nothing here is reviewed by hand, which is the point: it is the product's output, published where anyone can check it.