Sylvia Shelby
Feb 27, 2020 | 14 min read

When you type a website name into the browser address bar, do you ever start with www? Can you tell whether Wikipedia, Amazon, Facebook, and Twitter are www or non-www? Don’t worry if you can’t because you’re not alone. 

Since popular web browsers like Google Chrome and Safari now hide the www part of a URL, it’s easy to lose track of the www prefix in the names of popular websites. If you’re wondering, all of the above-mentioned Internet giants except for Twitter are www. But if you type instead of, you’ll still get your news feed loaded in a few seconds. 

The fact that omitting the www part won’t hinder your access to most websites can make you think that www is obsolete, and you may not bother to include it in your website URL at all. But if that were the case, then why would Wikipedia, Amazon, and Facebook stick to this conventional format? 

In this post, we’ll consider the pros and cons of making www a part of your website name. On top of that, I’ll also share some technical setup tips that will help you keep your website SEO-friendly regardless of whether you choose to go www or non-www. 

What’s the point of www?

Before we delve into discussing all the benefits and drawbacks of keeping or skipping the www part, let’s first understand where it comes from. To run a website, you basically need two things: a server where all your website files will be stored along with an easily memorable name aka the domain name. The latter will let users access your website by typing (www.) instead of the server’s IP address into the address bar with DNS doing all the heavy lifting. 

How does DNS work?

So, why would you add the www prefix to your registered domain name? Historically, such prefixes were used as a means of differentiating between servers within your network. In the early days of the Internet, there were no hosting providers and virtual private servers. Every company used to manage its own network of servers, every server within the network was considered a host and performed a single function like storing files for sharing on the web or mail exchange. So, with regard to the kind of service the host provided it received a particular host name.

Stores files for sharing on the web www
Used for exchanging files within the network ftp
Handles e-mail delivery over a network mail

When combined with the company’s registered domain, each host name formed a fully qualified domain name (FQDN) – an Internet equivalent of the property’s full address with the zip code, street name, city name, etc. Entering the FQDN into the browser address bar allowed users to access the necessary server within the company’s network.

In the modern Internet landscape, things no longer work that way. A single server with one IP address can be used both as a web server and as a mail server. Besides, it is common practice to point both the root domain—this is how non-www websites are called in technical terms—and the www hostname to the same IP address. It will let users access your website regardless of whether or not they add www to the website URL. For SEO reasons, however, you’ll still need to choose which of the two domain name variations you prefer. 

Putting it right SEO-wise

Surely you want to decide whether to go www or non-www with SEO in mind. But from an SEO standpoint, it doesn’t really matter which option you go for, as was confirmed by John Mueller on Twitter. Favoring one over another is really a question of branding and technical capabilities—we’ll dwell on both things in more detail later. 

John Mueller on www vs non www

If you make your website accessible through both www and non-www, what matters for SEO is telling Google which of the domain name variations is your preferred one. Otherwise, Google will treat the www and non-www versions as separate websites, they will both get indexed, and you’ll have to deal with the duplicate content issue.

When it comes to indicating your preferred domain name (also called canonical), you have several means at hand. The most common solution would be to set up server-side 301 redirects. That way, every time a server receives a request to the non-canonical domain, it will automatically redirect users to the canonical equivalent. So, if your preferred version is and a user types, he or she will end up seeing in the browser address bar.

How does 301 redirect work?

If for some reason you have no technical means to set up 301 redirects, you can add the rel=canonical <link> tag to the HTML code of all non-preferred version pages. Just keep in mind that this method is not as reliable as 301 redirects. Google treats canonicals as recommendations and not instructions, and as a result, both website versions may get indexed.

So, if adding rel=canonical tags works better for you anyway, here’s how you can implement it. If your preferred version is, add the following line to the HTML code of

<link href="" rel="canonical">

With WordPress 2.9 or higher, rel=canonical tags will be added to all your website pages automatically, so you won’t even have to do anything on your own. Tags will either point to www or non www versions of your website depending on the one you specified as your WordPress Address (URL) under the general settings of WordPress.

From the user perspective, the difference between using 301 redirect and rel=canonical tags is that, in the latter case, the URL in the browser’s address bar and history doesn’t change. So, a user trying to access will see this exact URL in the address bar even if is your canonical variation. However, as popular web browsers now skip www, I doubt that users will even notice that something’s changed.

Now, once you decide whether to go www or non-www and mark your preferred version as canonical using either of the two methods, it’s also essential to consistently use your chosen URL variation. So, if you decided to keep www, make sure all your Sitemap URLs and internal links are www. Moreover, whenever possible, try to arrange for your backlinks to also include www—while both 301 redirects and rel=canonicals are supposed to pass link juice, some of it may get lost along the way. In turn, Google will appreciate your consistency and reward you with better rankings.

No set-it-and-forget-it approach

Once you set up 301 redirects or mark preferred pages with rel=canonical tags, make sure to check from time to time if things are still working properly. If you’re wondering why they wouldn’t, here’s a real-life example. 

Let’s say you’ve marked your webpages with rel=canonical tags and then added a new WordPress theme that automatically included the same tag on all pages that you were unaware of. So, you’ll end up having duplicate rel=canonical tags, which Google finds confusing, but you won’t even know that there was aa problem until it impacts your SEO performance. 

To avoid such situations, you can systematically run a website audit. SE Ranking’s Website Audit tool, for example, will tell you if some pages of your website have duplicate rel=canonical tags, if several pages point to the same canonical URL or if some pages are missing the rel=canonical tag.

rel="canonical" tags in Website Audit

Under the audit’s Health check section, you can see if you have 301 redirects from www to non-www (or vice versa) set up properly.

www redirect in Website Audit

You can set SE Ranking to run a website audit for you regularly, like every week or month, so that you’ll be able to spot if something goes wrong in time. To check if everything is set up properly on your website, you can start your 14-day free trial and the system will automatically audit your website as soon as you add your project to the platform.

Choosing the preferred domain

Now that you know how important it is to clearly tell Google which domain name version you prefer, let’s finally figure out which of the two will serve you better as canonical. At first sight, the non-www URL looks neater and more appealing. It also rolls off the tongue much easier. As English author Douglas Adams once noted, it takes three times longer to pronounce the abbreviation www than simply saying “World Wide Web”. So, it’s no wonder broadcasters normally drop the www part when mentioning a website on-air. This is actually what most people do when saying a website name out loud.

When typing a domain name in the address bar, users who don’t remember the early days of the Internet typically also skip the www part. So why not skip it when choosing the canonical version of your website name? After all, it’s 2020 and people will still understand it’s a web address even if www is not a part of the URL and as long as you use one of the common top-level domains like com, net or org

It really makes sense to choose non-www for the sake of branding. But before doing so, there are some technical restrictions you need to consider. These limitations are the reason why Internet giants stick to www.

When is www a necessity?

Let’s say you decided to go non-www and mapped both your root domain and hostname to the same IP address you received from your hosting provider. It is done using an A-type record, and the DNS record looks like this. IN A IN A

Then you marked as your canonical domain. Everything looks good so far.

Now, let’s assume that one day your website will significantly grow and will start getting thousands or even millions of visitors every day. A single server cannot sustain such an increased load, and that’s the reason big websites like Wikipedia, Amazon, and Facebook don’t have their domains mapped to a single IP address. Instead, they rely on content delivery networks (CDN) to quickly and securely deliver content to millions of their users. So, you’ll naturally want to also use a CDN. And here come the technical limitations.

Handling loads of traffic

According to DNS specifications, root domains should always point to an IP address. But to make use of CDNs, you’ll need to point your website to a CDN domain, and not to an IP address. Theoretically, you can map your domain both to an IP address using an A-type record and to a CDN domain using a CNAME record. But here comes another DNS rule telling that a CNAME record cannot co-exist with other resource records types. So, if you add both, the A-type record pointing to the IP address will be ignored, violating the first rule. 

If you got slightly overwhelmed by all the technical terms mentioned above, here’s the short version. Because of the way DNS requests work, you cannot point a non-www host name to a CDN domain. Doing so will lead to unexpected errors and won’t let your website function properly.

At the same time, if you choose the www host name as your preferred version, you won’t have any problems complying with DNS rules. You’ll simply create a CNAME record for the www hostname, mapping it to a CDN of your choice. And you’ll also add an A record for your root domain pointing to your website’s IP address.  CNAME      A

It is also worth mentioning that some DNS providers like Cloudflare, DNS Made Easy, DNSSimple, and more have introduced workarounds to overcome the DNS restrictions. But relying on the workarounds will limit your choice of DNS providers and you may also face the problem of hindered user experience because of users being routed to a far-away CDN node.

Taming website cookies

In addition to DNS limitations, choosing a root domain as canonical brings up the cookies issue. The thing is in modern browsers, cookies of the main domain are automatically passed down to subdomains. So, if you set cookies for, they will also be sent to,, etc. And here’s why this is a bad thing. 

The first reason is the negative impact on user experience. Bigger websites often choose to store their static content (image, video, JavaScript and CSS files) on a subdomain to free up the main server for dynamic requests. But if the website runs as the root domain, then cookies will still be sent from to, slowing down access to static content and hurting website performance. The only way to prevent this waste of bandwidth would be to store your static content on a whole different domain. This is what Twitter being non-www does—they host their static content on

The second reason is security risks. When you log into your website’s CMS, a cookie is issued. Then when you visit or, the cookie is sent to these subdomains and can be read by server administrators. It poses a security risk as administrators can copy the cookie and use it to log into your corporate CMS. To mitigate the risk, you can resort to IP restriction only allowing access to your corporate network IPs. 

So, if you want to optimize your website’s speed by hosting static content separately, but you are not quite eager to purchase a whole new domain for this purpose, consider keeping the www prefix in your preferred domain name. This way, you also won’t have to worry about third parties reading your website cookies. 

To www, or not to www

The www prefix in the domain name may seem little and insignificant, but it can make a big difference. Your branding and your website’s scalability are affected, so make sure to choose wisely based on your priorities and future plans. And once you make the decision, mark your preferred version as canonical and stick to it. Switching back and forth from www to non-www is technically possible, but it won’t do your website’s SEO any good. 

Finally, we’d love to hear which camp you are in. Share in the comments sections below why you prefer to www or not to www.

Share article
Post Views: 3,933
  1. Hey, I changed mine just now to www from non www, will this damage my prexisting SEO? I already have both added to Search Console and just changed my preference. Thanks!

    1. Hey, Mario. No need for you to worry. If you set up the 301 redirects then it should have minimal effect on your SEO.

  2. Thanks for the great post, rather easy to grasp 🙂
    I have my website with a naked URL as I prefer the look of it. Your points of using www are reasonable but my website is rather small and I don’t think I need to bother about the technical limitations so far

    1. Thank you for sharing, Merle! You really shouldn’t worry about CDNs and cookies if none of the cases I described apply to your website. And if any issue arises in the future, you’ll know what to do

  3. Hi Sylvia, great post.
    In a website audit they say I have to make redirect some pages to www to non-www. How can I, exactly, set up 301 redirect ? I’m new and I don’t understand so much of this…..

    1. Hi Philip,

      No worries, it’s no rocket science. The setup process varies depending on your hosting server. For Apache Web Servers offered by many popular hosting providers, what you need is adding a few lines of code to the .htaccess file.
      If your hosting comes with a cPanel, go to the File Manager, choose to show the hidden files in the Settings and you should be able to locate the .htaccess file in the public_html directory. Make a copy of it and then try adding these lines of code replacing with your website name:

      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule .*{REQUEST_URI} [R=301,L]

      If this doesn’t work for you or you are struggling to find the .htaccess file, try googling your hosting name + .htaccess, and you should find all the necessary instruction.
      Hope this helps.

  4. The advantage I can think of for having www is on instagram. For example, an address that ends with .us or .biz e.g or could be an instagram user name.
    So when promoting your website on instagram, its better to add www so people would know its your website you are promoting not your account name.

    1. Fola, thank you for providing such a great example. Sometimes without the www part, it is really way harder to understand that we’re looking at a web address.

  5. I’m running into the exact issue you mentioned about non-www not working with cdn. I had cdn for almost a year until I discovered it wasn’t working due to not using www. So now I’m in the position where I need to change it to www, but I’m really concerned I’ll hurt my seo.

    1. David, thank you for sharing. I wouldn’t worry too much about hurting your SEO. 301 redirects pass up to 99% of link juice, so your hard-earned backlinks will still work for you. And redirects will also tell Google it should now index the www-version. To track your www-website’s performance, add it to GSC. But if you already have your website added to GSC as a domain property, you can skip this step. Then, add your updated Sitemap to GSC for Google to spot the new versions of the pages faster.
      Finally, there’s a few more things you can do to speed things up and keep all the link equity.
      1. After setting up redirects, go though your internal linking and replace all the URLs with the www-versions. Another option would be to implement relative URLs before setting up redirects.
      2. You may try to amend your most important backlinks by contacting website owners and asking them to add www to the URLs.
      3. You can also manually ask Google to recrawl your most important pages via the URL Inspection tool.

      Good luck with changing your website to www 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

More Articles
SEO Insights
The ultimate guide to guest posting
Sep 28, 2020 38 min read

Quality guest blogging is time-consuming, and still, marketers are eager to invest their time into crafting guest articles. In this blog post, we’ve outlined the benefits that guest posting can bring along with some pitfalls you need to be aware of. Learn whether guest blogging is the right thing for you and if so, build your own impactful guest posting strategy based on the practical tips from SE Ranking team and SEO experts we reached out to.

Sylvia Shelby
SEO Insights
The mechanics behind keyword clustering
Sep 22, 2020 15 min read

Keyword clustering gives you a clearer picture of what content to create and how to organize it across pages, what phrases to rank for, and how to promote different segments of your site. When done automatically in SE Ranking, it saves you time and allows you to group and analyze your semantics quickly and efficiently.

Anastasia Owsley
SEO Insights
How to create and optimize a single-page website
Sep 09, 2020 21 min read

A single-page website allows you to be creative in design and attract visitors to one particular CTA but can be a pain in the neck when it comes to SEO. Despite the limitations, there are proven techniques for doing both on- and off-page SEO on your single-page site effectively.

Anastasia Owsley