hi, i own a website and via google webmaster tool i've added both www.mysite.com and mysite.com. and both are directing towards mysite.com but i'm still facing canonicalization issue. is there some kind of code to update the site with, so i can escape from this issue? Regards
Just search on google you will find .htaccess code make some changes in that code regarding to your page.
this could also help you redirect http:// www.yoursite to http:// yoursite without www and the vice versa if you want http://www.scriptalicious.com/blog/2009/04/redirecting-www-to-non-www-using-htaccess/
you have to add ht-access file on your server and then you have to set proper redirect in Google webmaster if both site has been added already in it.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed) Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.domain.com/$1 [R=301,L] Please REPLACE www.domain.com in the above code with your actual domain name. In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website. Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.