I'm having the following issue.

I host with bluehost.com, which allows me to create several domains (like many other hosting services do) on the same account. The domains are all under the ~/public_html/(domain name) folder.

When I unzip drupal 7 into one of my sites folders (~public_html/example.com/), and the go to the site (www.example.com), drupal has some sort of path detection that automatically rewrites the URL as follows:
http://www.example.com/example.com/install.php

I'm assuming this is because ~/public_html is the real root, and example.com is being detected as the installation subdirectory.

I've had WordPress installed and working without this issue. Basic HTML files work fine with just http://www.example.com.

Has anyone else run across this issue? Is there a way to tell drupal to NOT insert the subdirectory information into the site URL?

-Josh

Comments

mudsurfer’s picture

Hi there,
I dont use BlueHost, but do use other shared hosts that are likely similar.
This may not be your issue, but when you have unzipped the drupal files into the ~/public_html/(domain name) folder are all the drupal files sitting in that directory, or are they contained within another folder?
When you unzip into ~/public_html/example.com
You usually get ~/public_html/example.com/drupal-7.10/

and all the files are inside the drupal-7.10 directory.
I then have to move all the contained files "up" to the example.com directory, before I start the install process.
Otherwise I get a site URL like http://www.myhostaccount.com/example.com/drupal-7.10/install.php

Does that help?

jnudell’s picture

I'm aware that the archive unzips to a drual-7.x subfolder, and I have moved all files to the folder below, where it should reside.

I'm pretty sure it's an issue with the way drual (and other CMSes) detect the folder that drupal is in. Joomla does the same thing, and makes the site url http://www.example.com/example.com, instead of just http://www.example.com.

I just wish there was a way to override the detection used by drupal. Is anyone familiar with such a thing? A quick grep of the files shows that more than just the main file use the folder detection routine.

-Josh