Hi to all, I read that if a site have 2 addresses for example http://www(.)xyz(.)com and http://abc(.)com then search engines recognize them as a 2 different sites is it true? And if yes then what should I do to convert http://abc(.)com into http://www(.)abc(.)com?
You need to use a 301 redirect: http://www.webconfs.com/how-to-redirect-a-webpage.php Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com 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 rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] Code (markup): Please REPLACE domain.com and www.newdomain.com with your actual domain name. Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled
Place this in your .htaccess file ###### RewriteEngine On RewriteCond %{HTTP_HOST} ^mywebsite.net RewriteRule (.*) http://www.mywebsite.net/$1 [R=301,L] ##### Obviously, change the url to your address. There is also a feature in Google Webmaster Tools to allow you to specify www. at the beginning of your url... As for counting as two websites... I don't know, but it's good to specify one or the other url for the search engines... Edit: beaten to it!
thanks for your reply. Yes I have a site which you can see in my signature and the main thing is that my site is cached by Google and the site is taken as http://graphicsinfoways.com now what should i do should i redirect it into http://www.graphicsinfoways.com or leave them as they are?
Sorry, but this is the best redirect method SEO wise RewriteEngine on RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L] Code (markup):