Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WWW vs non-WWW – Which is Better For WordPress SEO?

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
WWW vs non-WWW – Which is Better For WordPress SEO?

Every now and again, we get asked by users what’s the difference between www vs non-www in site URLs? People often want to know which one is better for SEO, and whether they should change their site URL. In this article, we will help you understand the difference between www vs non-www and which one is better for WordPress SEO.

Before we start: for an average user and small business owner, there is absolutely no difference between www vs non-www. It’s completely a personal preference.

Yes there is a technical difference between the two which we will cover later in the article, but for most people it shouldn’t matter either way.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

WWW vs non-WWW – SEO Benefits

There are absolutely no SEO benefits of choosing one over another. Even Google has said that it all depends on your preference.

What’s important is that you stay consistent with the one that you chose at the time of starting your website.

In other words, DO NOT change your site URL to add or remove www from it.

You can let Google know about your personal preference, and they will honor it. All you have to do is go in your Google Webmaster Tools account and click on your site. If you have not added your site to Google Webmaster tools, then follow our guide on how to add your WordPress site to Google Webmaster Tools.

Next click on the Gear icon towards the top right corner of your screen and select Site Settings.

Google Webmaster Tools Settings

On the Site Settings screen, simply choose the preferred domain.

Google Preferred Domain

Alternatively, if you’re using WordPress SEO by Yoast plugin, it will automatically set canonical URL in your site header which will let Google know of your personal preference.

That’s all what you really have to do.

Before you even consider asking, yes we’re using www on WPBeginner site, but that was a personal preference. On our other site such as list25.com, we do not use www.

It’s just a personal preference that’s it.

Technical Difference between WWW vs non-WWW

When you add www. in front of a site, it acts as a hostname which can help with flexibility with DNS, ability to restrict cookies when using multiple subdomains, and more. Whereas non-WWW domains also referred as naked domains do not have a technical advantage.

For full technical explanation and details, refer to this article on Why use www?

We hope this article helped clear any confusion between WWW vs non-WWW for your site URL. They are both equally as good with SEO.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.


Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »

Comments

  1. VINOD KUMAR MAHINDROO says:

    i have set my preferred domain with www but i had done my seo submission without www. is their any technical issue in serp.

    • WPBeginner Support says:

      Yes, you will need to redirect users and search engines if they are not already being redirected.

  2. Dustin Brohm says:

    Here’s the question… just learning about SEO now. Before I setuo my new website I was putting my links all over the web as www. But then my new website shows up as non-www. Is google seeing this as 2 different websites? Are they not connecting the backlinks that have a www to the new website that is non-www?

    If all my backlinks have a www, should I have my website person change my site to include www? This has been so confusing to me, so hopefully you can clear this up

  3. Philip says:

    Thanks for this tip – what is stupid is that Google gives you the opportunity to change the version in WebMaster Tools but they do not pass the domain authority from the old to the new…

    I saw this option after noticing that no one uses www anymore in conversation and it seems more streamlined (less is more?) so I removed it. I ended up losing massive amounts of SEO juice and that could have ruined my business.

    If Google is going to let you change, then why don’t they send the juice with the change!?!?!?!?!

  4. Brittney says:

    Where can this be adjusted in yoast?
    After making sure the redirect for www to non-www is in place, how long before webmaster tools will index the non-www version.

  5. munish says:

    confusing article not clearly said to which is best or which you preffer any way thanks

  6. Mike says:

    Thank you for the article, it answered a couple questions I have had. I am wondering if we set our preferred domain with Google WMT and set the same domain structure (non-www) in the wordpress settings does that alone define the canonical url? or should we also add a www to non-www 301 in our htaccess file? Thank you

    • sid says:

      Seriously guys I would always choose www.

      I decided to choose non www. because I liked it better but I am now having all kinds of problems later down the line.

      For example.

      My host offers cloudflare at a reduced rate. After spending 19 days on tech questions they now tell me that I cannot have a non www. domain running cloudflare through my control panel.
      Instead I have to go to cloudflare and set up through them at an extra 15 dollars a month. :/

      In changing over I have also had problems with my ssl certificate.

      Non www. just isn’t as flexible at DNS.

      This situation has got very messy the further I have progressed with it and multiple changes in htaccess, server setup and code have been needed to maintain proper operation. It isn’t worth it, it slows your site eventually through all the mess it creates.
      Some of the problems I have encountered have been my own fault but I like you was stumbling blindly into stuff and just did what I was told. The free advice wasn’t always all that great and now I’m in a bit of a mess that could of been avoided if someone would of just warned me against the vanity of the non www.

      When I was first reading this up everyone was like… Oh yeah use non www. if you like…Google doesn’t care. Well I now have all my webmaster tools set up, analytics, company stationary, business cards and all the rest done and my site won’t work properly with cloudflare. I think there may be a work around at cloudflare but to use a cname requires a business account at £200 a month.
      I haven’t fully investigated that option because I can’t afford it before anyone asks.

      Also, I get the redirect thing but it’s not the point? It’s all extra work that can be avoided and when your site gets big it adds up.

      If your coming to this raw I would advise you to set up as www. If nothing else to save yourself months and months of reading and frustration.

      You have been warned.

      • Eder Lugo says:

        Dude. I’m running my domain without www under cloudflare with SSL for FREE, maybe is something about your server. You can see my site here:

  7. James Canning says:

    Its so obvious that wpbeginner changes the date on their old posts to make old content look newer.

    • WPBeginner Support says:

      We do not change dates. Actually we display the last updated date of a post and not the published date. We regularly update our old articles with new information. We update screenshots and make corrections when necessary.

      • Sacha says:

        That’s very sensible.

      • Lonnie Jones says:

        Yeah, I do the same thing. Every year I have to re-evaluate the “best” overall tools. If I find something important sooner than later then I just post it immediately.

  8. Erick says:

    I don’t think you really need to worry if you want to change the url from www to non www or vice versa at a later date. You don’t really need to be consistent anymore.

    WordPress 2.3 version has already improve on this and the only thing that is needed is to go to your wordpress settings->General and add or remove www. wordpress will automatically change all redirects by itself and you don’t have to do a thing, you don’t lose anything, no serp no likes nothing. The only thing you need to change is your webmaster tools url and thats it. Google might take a bit to index all your pages again but google its pretty fast.

    In conclusion don’t worry if at a later date you want to change your url again. You can do it as many times as you want.

    • Gillian says:

      Hi Erick, Was trying to find an answer to this question as I too would like to change my non-www to www domain and am thrilled to hear its really this easy! What about internal links and media stored on the site? Will that need to be redone? Also, will I need to update my settings with plugins like jetpack or will they automatically be informed?

      Thanks so much for your comment, it really makes things so much easier for me as I’m very new to wordpress!

      Gillian

  9. heather arnita says:

    So when you list your bog on other sites should you stay consistent and use www or non depending on your preference?

  10. oescar says:

    Well if u say so i wont doubt it :))

  11. Praying to the Google Gods says:

    Let’s just say a designer did change your site from www to non www. And your site dropped out of Google. It is advised to wait it out? Or change it back to www ??

    • WPBeginner Staff says:

      Restore a copy of your website on www. and setup 301 redirects to your new non-www site.

  12. Mark Davis says:

    Thanks for post such a nice blog,
    But my opinion is this,there are no difference between www or without www effects on seo traffic and ranking.
    But technically www is standard way to represents url address so we should prefer with www url.

  13. Vitaliy Kolos says:

    Thing learned: naked URL :)

  14. cyberarm says:

    The one click install on most cpanels seem to omit the WWW in the setup. This has been my experience anyway.

  15. ADOLF WITZELING says:

    Interesting-I didn’t know that. Guess God’s in the detail…the Devil too…

  16. Chris says:

    Good article. I would just add the importance of doing a 301 redirect from one to the other, whichever way you choose. Thus way all links get resolved to the same domain (subdomain) instead of splitting backlinks.

  17. Becca Heflin says:

    Great information, but for small bloggers like myself, how do I find out which way I set it up initially? I honestly can’t remember!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.