Hi, I have a shared business hosting plan with hostgator. I find that any additional domains i host apart from primary domain are coming up as subdomain for the primary domain and google is also indexing them as subdomains for primary domain instead of seperate identifying them as websites. I would like to know how can i tell google to index them as seperate websites and not as subdomains of primary domain. Thanks Dev
cPanel creates a new sub-domain for each add-on domain. It doesn't make a lot of sense, but you can remove them.
please post it here, I have had exactly the same problem and I had to give up at that point. But now when I think about it, I guess it would be some .htaccess RewriteRule?
I have about 100 sites with hostgator with no google indexing issues. When you log into the control panel and you want to add a new domain you go to "add on domain" and enter your new domain name there, enter password etc, make note of the ftp and press add domain. Wait about 10 minutes and it should be live. Not forget to redirect your name servers. Note: On the page where you enter your new domain, it talks about subdomain, JUST ignore that. The problem you might have is when you ftp? because you might be uploading it to the same folder as your main account domain. your hostname or ftp address of an add on domain would be xxxxxx.webname.com and then your ftp login would be if you are still having problem Pm your log in issues or websites and I will take a look FREE
the issue is that every addon domain will appear not only as addon.com, but also as addon.yourmaindomain.com, and as soon as google will discover that (for whatever reason) you may gonna see addon.youmaindomain.com results that you don't want to see and dont want addon to be associated with yourmaindomain at all. The point is that addon.yourmaindomain.com should not be served or should be redirected to addon.com
ah yes I just did that with my tool bar and can see. however google does not seem to have indexed any of the pages of my sites. why does the OP not chat with hostgator and see what they say. they have always been good and helpful with me
It has nothing to do with hostgator. This problem can occur with any hosting account. One of the way google can discover is: When you transfer web hosting services, Google discovers addon domain as sub-domain of main domain, so you need to edit htaccess file. If anyone needs the exact solution, I will PM the URL.
Pretty simple to fix. Go to the subdomain that a new domain name is pointing to and add this to the htaccess in that subdomain. That should be easy enough to translate, enjoy! ### BEGIN CLOUDFLARE REWRITE (www.domainA.com to www.domainB) RewriteEngine on RewriteCond %{HTTP_HOST} ^www.domainA$ [NC] RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(.*)$ http://www.domainB.com/$1 [R=301,L] ### END CLOUDFLARE REWRITE ################### ### BEGIN CLOUDFLARE REWRITE (domainA.com to www.domainB) RewriteEngine on RewriteCond %{HTTP_HOST} ^domainA$ [NC] RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(.*)$ http://www.domainB.com/$1 [R=301,L] ### END CLOUDFLARE REWRITE ################### ### BEGIN CLOUDFLARE REWRITE (domainB.com to www.domainB) RewriteEngine on RewriteCond %{HTTP_HOST} ^domainB.com$ [NC] RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(.*)$ http://www.domainB.com/$1 [R=301,L] ### END CLOUDFLARE REWRITE ################### Code (markup):
The best way is to check with the hosting provider, scylla has explained clearly but I doubt alot of people will understand.