My site is not visible when I type the domain. Help please

Discussion in 'Site & Server Administration' started by midi, Oct 14, 2008.

  1. #1
    I have an account which can hold 1 main domain (maindomain.com) & 5 other domains (domain1.com, domain2.com, domain3.com, domain4.com & domain5.com). Main domain is directly in the public_html folder, while the other 5 are in folders within the public_html folder.

    I have installed Drupal in one domain (in domain5.com), which is inside a folder called: public_html/domain5/. However, whenever I want to access to it, I cannot access through the domain name. When I type in the browser:

    Domain5.com, it gives an error. However, when I type:

    Maindomain.com/domain5/ it shows me the site…

    Any suggestions as to why It does not work when I type domain5.com?

    Thanks
     
    midi, Oct 14, 2008 IP
  2. VINAX

    VINAX Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It didn't not load the site because the contents were located in public_html/domain5/
    You can create a .htaccess file or PHP code and put in public_html/ to redirect the visitors to public_html/domain5/ when they access the main domain.
     
    VINAX, Oct 14, 2008 IP
  3. midi

    midi Active Member

    Messages:
    247
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    THanks Vinax, I will try that.
     
    midi, Oct 14, 2008 IP
  4. Mxhub

    Mxhub Active Member

    Messages:
    474
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    I suggest put your drupal on the domain5.com/ rather than on domain5.com/drupal..

    It will make your site look more professional.
    --
    joseph
     
    Mxhub, Oct 14, 2008 IP
  5. fizfaz

    fizfaz Well-Known Member

    Messages:
    334
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #5
    I think you should use the add on domain function on your cpanel.. it will automatically create the add on domain at your /public_html/ folder..
    as example /public_html/domain1.com/
    Make sure you've change your domain1.com domain name DNS at your domain registrar point to your server..
    Then I think you should be no problem to access directly www.domain1.com later..
     
    fizfaz, Oct 14, 2008 IP
  6. midi

    midi Active Member

    Messages:
    247
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Thanks Joseph for your suggestion. It is indeed installed in domain5.com, but domain5.com is installed in a folder inside public_html. I believe this is the way it always works. I have two hosting accounts in two different places and in both they put the main domain under public_html and the rest in specific folders inside public_html.
    :confused:
    Could andybody suggest as to which should be the specific instruction I should put in the .htaccess file in public_html so that when I type domain5.com I can see the site? Now I can only see it typing maindomain.com/domain5

    Reality is that I am not completely confident that this will solve it. I have another drupal site under domain3.com which works fine & I have checked the .htaceess in the root and it does not mention anything about it. The .htaccess in domain3 and domain5 are very similar.
     
    midi, Oct 14, 2008 IP