We just went through a redesign. I was trying to get my developer to set the canonical url to www for my domain.
My developer is saying is saying non-www to www is done through htaccess redirect .Not something that can be applied to the header code. Is this correct?
www.domain.com/article1.html and http://domain.com/article1.html are treated as one already? If so, I guess I don’t need to do anything else. I was under the impression both pages are considered separate and in order to avoid duplicate content issues, I need to set the canonical to www or non-www
You can set your preferred domain for Google through Webmaster Tools, but you should also set it in .htaccess, for other search engines and human visitors.