I understand that it is a good thing to use canonical links so that Google sees the www and non www site version as the same site.
My question is which is it best to include in the canonical link - the site name with or without the www?
Hope this makes sense.
I think it is not as important, as long as you pick one, and keep building links to the other “version” of the site.
Its better to use 301 redirection for merging your www and non-www version of your websites.
Canonical tags are required to use in cases where search engine is discovering your web pages from different path.
Sorry if this is a daft question, but if I chose the www version to be the main version, why would I build links to the non www. version?
Whatever version you choose for your site (www or non-www) use that in your canonical tag and build links to that version chosen.
Also make sure you choose the same version in Google Webmaster Tools.
It does not matter which one your choose. I personally prefer with www rather than without it.
You wouldn’t but other people quite likely will. Since 99% of links to sites are built by people other than the site owner and you don’t have any control over how they do the link you will likely end up with perhaps 20-25% of the links to your page using the one you didn’t choose simply because some people always include the www and some people always leave it out regardless of what the site they are linking to uses.
At most you will build a few thousand links to your page but if your page is to be popular it will need millions of links to it - hence 99%+ of the links to your page will have to be created by other people.
Thanks everyone for great explanations - they’ve been really helpful.
One aspect of this not yet mentioned is that Google webmaster tools lets you set your preferred domain.
It mentions at the bottom of the page that a 301 redirection is a good way to help keep things in order.
Zorro D is absolutely correct: instead of relying on an invalid, proprietary google-only attribute in your markup, make your server redirect with a 301… search engines (and hopefully those linking to you) will update their indices.
it doesnt matter which would you like to use for. as long as you know where is your portal for links. for me then i rather use with www.
Even if you have a 301 redirect, it’s still not a bad idea to include a canonical meta tag on large sites… just to be extra careful you don’t have any pages displaying the same content under different URLs.
You can use which ever you want (www or non-www version) but make sure to set your preferred domain in Google Webmaster tool.
i like to see www version of website in google listing.
I am using www for my website as redirection and as canonical. So i’ll suggest same.
There is not any difference, you can use any one from these two.
i think with www is preferable…but it does,not affect more in any way so its your choice to go either way…but make sure that you use only one URL for your website with or without www
I don’t think there’s a point in using the canonical tag if there are 301s anyways.
Its not matter that you should write www or not its all about you choose canonical links or not. So always use canonical links for saving duplication.
That depends on the setup of your site. Sometimes you can end up with multiple variations of an address, eg if you use dynamic URLs, and then a canonical is a very handy way to guide Google. And even if that isn’t the case, belt and braces never hurts!
and then a canonical is a very handy way to guide Google. And even if that isn’t the case, belt and braces never hurts!
Spreading proprietary stuff that only works for the single head of a monopoly never has!
I use a shoopping cart software called volusion and it will not let me use 301 redirects for my home page. so is the conical the correct way to go?