Hi, I have a website. Let say "www.pharmacyking.com". My hosting account domain is "host.myhost.com" People can access my website (www.pahrmacyking.com) through my hosting account domain "host.myhost.com/~admin1". However, I found Google has also indexed my website through my hosting account domain. Is there anyway can block this? My server is Linux, Apache, PHP, MySQL Thanks for you help.
Would that block Google indexing my site through (www.pharmacyking.com) ? Because I want google index my site with my actual URL instead of my host domain.
Robots.txt won't help in this case. You need a 301 redirect RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^host\.myhost\.com$ RewriteRule (.*) http://www.yourdomain.tld/$1 [R=301,L] Code (markup): Use this to make sure all traffic from host domain is redirected to your main domain. Search engines will automatically understand what you mean.
My website is Joomla based. Using sh404SEF for generating good looking URL. Can I just paste this code into .htaccess file and it will work?