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
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.
I suggest put your drupal on the domain5.com/ rather than on domain5.com/drupal.. It will make your site look more professional. -- joseph
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..
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. 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.