I have a site under development set up with Drupal up and running in a /drupal subdirectory.

When I straight to that subdirectory the Drupal page shows up more or less ok.

Problem is, when I go to the main site URL, I got a listing of the site index.

I set up a HTML homepage with a redirect to the Drupal directory to deal with that, but I figure there has to be a more elegant solution. I could not find it in searching the documentation and the forums.

Can anyone help me out here?

Thanks.

Ray

Comments

bjornarneson’s picture

What is it that you want to do? Simply redirect from http://example.com to http://example.com/drupal? The HTML redirect that you already set up will work.

You could also redirect with an .htaccess file in your root directory. Google "htaccess redirect" and you'll find some tutorials.

--
Bjorn | choirgeek.com

raycampbell’s picture

Thanks all.

The html refresh, while inelegant, is getting the job done, so for now I am going to leave it that way. I am keenly aware of my technical limitations, and I am afraid that if I start messing around with .htaccess or moving Drupal to a different folder, I will create problems that I am unable to fix.

I will have more questions as I try to figure out Drupal while doing this site, and I very much appreciate people's willingness to chime in.

Ray Campbell
skype raywcampbell

lilywhite’s picture

You'd have to change the config file. Once you did that, I *think* everything would work fine.

BobT-1’s picture

I initially installed drupal to a drupal folder and had problems. When I searched for my solution - I was expecting variables such as $path_to_index() and $path_to_settings() in settings.php - I found that Drupal is happiest when installed to web root.

I know, not much help. Your best bet is to use either .htaccess or a web based control panel to configure your web server to point to ./drupal/index.php as the default. I'm not familiar with editing .htaccess, or I'd be more specific. Sorry.

_________
bob-thompson.com