Hello Everyone, some links of my website show in google with www. and some are without www. I need to redirect all the links on www. Can anyone tell me what is the process to do this? Thanks in advance for the answer.
In your .htaccess file type in Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www.example.com$ RewriteRule ^(.*) http://www.example.com/$1 [R=301,L] Code (markup): That will permanently redirect visitors AND spiders to the www subdomain
Open up notepad, copy that. Hit file-->save as and save it as .htaccess, nothin else. Upload it to the main directory wth ftp.
Login to your google webmaster tools account -> Settings -> Preferred Domain -> Display URLs as www. example .com This should do the trick. Btw. this shouldn't affect the SERP, at least based on my experience it doesn't
It will effect him/her if the site is already established, and may even more if it were an e-commerce site. There are quite an few other important variables to take into effect, however if the OP isn't that concerned then so be it
for me I use my gocode wordpress redirections plugin and so far it help me move my www to non www site and so far the rank and traffic is OK