Hello, When I search one of my sites on google the results show the site as "domainname.com" not "www.domainname.com" as they should. Can you please help me in this matter? (the site is in wordpress) Thanks a lot
Set in the Google Webmaster Tools the preferred domain alias as www.domainname.com PS. Do not forget to check that your site is properly configured to fetch pages for user- , robots- visits to www.domainname.com
This issue present because your site doesn't cache since from you use domain.com, not www.domain.com. If you just change to www.domain.com a short time, just wait they will cache you soon and make the change.
Wrong. Waiting on Google to recache the site will not fix the issue. More than likely they will eventually have both the www and non-www version of all of their URLs indexed. This issue occurs when you have URL canonicalization issues which lead to duplicate content and split link juice/page rank. The problem is that your site allows users to access your pages both with and without the www subdomain. While fixing it using the setting in Google's Webmaster Tools will work for Google, you STILL will have the problem with the other search engines so this is NOT the ideal way to fix the problem. The BEST way to fix this problem so that it corrects it for ALL search engines is to implement 301 redirects such that any time someone requests any URL from your site without the www, that your site 301 redirects that request to the same page with the www. If your site is hosted on Apache, you likely have Mod_Rewrite on the server. All you need to do is to implement redirect rules inside of a .htaccess file located in the root of your web similar to the following: RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^example.com$ [NC] RewriteRule (.*) http://www.example.com/ [R=301,L]