hostgator shared hosting with multiple domains

Discussion in 'Web Hosting' started by Devaguptam, Jun 22, 2012.

  1. #1
    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
     
    Devaguptam, Jun 22, 2012 IP
  2. InnovusHost

    InnovusHost Peon

    Messages:
    136
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    cPanel creates a new sub-domain for each add-on domain. It doesn't make a lot of sense, but you can remove them.
     
    InnovusHost, Jun 23, 2012 IP
  3. rgblogs

    rgblogs Active Member

    Messages:
    239
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I have PMed you the solutiion :D
     
    rgblogs, Jun 23, 2012 IP
  4. PromptSpace-Kushal

    PromptSpace-Kushal Member

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #4

    If you post it on the forum publicly it helps fellow members.
     
    PromptSpace-Kushal, Jun 23, 2012 IP
  5. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #5
    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?
     
    atxsurf, Jun 23, 2012 IP
  6. missinglink

    missinglink Well-Known Member

    Messages:
    275
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    140
    #6
    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
     
    missinglink, Jun 23, 2012 IP
  7. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #7
    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
     
    atxsurf, Jun 24, 2012 IP
  8. WSWD

    WSWD Well-Known Member

    Messages:
    1,420
    Likes Received:
    65
    Best Answers:
    1
    Trophy Points:
    175
    #8
    Your spam has been reported.
     
    WSWD, Jun 24, 2012 IP
  9. Maxpoweraff

    Maxpoweraff Greenhorn

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #9
    make sure your adding them as addon domains and not sub domains!
     
    Maxpoweraff, Jun 24, 2012 IP
  10. missinglink

    missinglink Well-Known Member

    Messages:
    275
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    140
    #10
    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
     
    missinglink, Jun 25, 2012 IP
  11. rgblogs

    rgblogs Active Member

    Messages:
    239
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #11
    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.
     
    rgblogs, Jun 25, 2012 IP
  12. scylla

    scylla Notable Member

    Messages:
    1,025
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    225
    #12
    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):
     
    scylla, Jun 25, 2012 IP
  13. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #13
    Has it been tested for that particular application or is it just an idea that should work?
     
    atxsurf, Jun 25, 2012 IP
  14. Dj.c

    Dj.c Peon

    Messages:
    118
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    The best way is to check with the hosting provider, scylla has explained clearly but I doubt alot of people will understand.
     
    Dj.c, Jun 28, 2012 IP