Does It Matter If You Use WWW For SEO? (SEO FAQ)

Author: Gab Goldenberg

Question: Does it matter for my site’s SEO in Google or other search engines if I use www in the domain name? For example, do I need to use or can i use ?

Answer: It doesn’t matter at all to your SEO in Google or Bing whether you use www. in your domain name or not… with one big exception

(Related post: What is search engine optimization?)

Search engines don’t consider the use of www or not as a ranking factor, because it has no value in improving the relevance of their search results or improving the user experience.

There is one exception, however. You don’t want to use both a www version of the site and a non-www version.

If you do use both www and non-www, then you’ll have duplicate content problems, also known as “canonicalization” problems. The heart of the matter is that your content will be found in two separate locations.

(The word “canon” is used in religious terms to mean the “official set of holy writings.” That’s been adapted to other fields. So you can have the canonical set of Harry Potter books, which are the official books, and you can have the “canonical” version of a web page, which is the official one you want search engines to rank in their search results.)

What I mean is that if you have two identical versions of a page, one found at and another found at, and both show up fine to search engine spiders, you will have duplicate content.

This is problematic because a) It confuses search engines as to what is the canonical, or official, page. b) You will sometimes get links to one version and sometimes to another, such that you compete with yourself.

How do you do SEO successfully then, if you currently have such www vs non-www duplicate content problems?

You have two options.

1) Redirect either version to the other one using “301 permanent” redirects. There are numerous tutorials on this online, for DIY people, but you can also get a decent freelance programmer to do it for you. Personally, I get my hosting from Dreamhost and they give you an option to 301 redirect one version to the other.

I have a $50 off discount code at Dreamhost off any annual hosting package (or a $25 off discount on a monthly hosting package) if you need to set up a new site: Just enter GabSavesYou50 when you sign up for Dreamhost hosting.

(Full disclosure: It’s an affiliate link, but I’d endorse Dreamhost personally anyways, as I have in the past. Their tech support is super responsive and they have numerous tools to make things very easy, like one-click WordPress installs.)

2) Use the “canonical” tag to indicate to search engines which version is the official one. For those of you using WordPress, Yoast has a plugin to automate some canonicalization, but I’m not sure it’s applicable to this situation.

(3) Update: Malcolm Coles has a related article with examples of www vs non www that’s a valuable read on this topic.

If you liked this post, you might want to get my latest posts sent to you regularly, for free, by rss or by email.


Tags: , ,

Sidebar Story


  1. Of course, in most cases, people tend to link to the www version so it will give the most value as the one that doesn't redirect unless it's one of the rare cases where it's the other way around but it's true - either one works.

    Comment by Marjory - August 7, 2009 @ 4:32pm
  2. I always use a .htaccess file to redirect to a site to WWW if people don't type in WWW at the top. I only add the WWW out of habit and that's the way I'm used to doing it.

    Comment by Oliver - August 10, 2009 @ 12:04pm
  3. Well done, Oliver! A simple way is to use Dreamhost, who let you choose www or non-www when you set up a new domain.

    Comment by Gabriel Goldenberg - August 12, 2009 @ 12:25am
  4. Thanks for the interesting post. Like Oliver, I use a .htaccess file to redirect my sites from non www to www.

    Comment by Jamie Search - October 16, 2009 @ 4:16am
  5. Thanks for sharing Jamie. Hope it's working out for you!

    Comment by Gabriel Goldenberg - October 16, 2009 @ 3:45pm

Leave a Reply