By mlissner on
I have been looking all over, but as a non-apache pro, I can't for the life of me figure out how to make it so that my root configuration points to my drupal installation.
An example will help. Right now, to get to my drupal website, I have to go to http://70.137.138.227/drupal. I want to just go to http://70.137.138.227 and have my drupal site load.
I'm running apache2 in Linux, and I know this isn't that hard, but I can't figure out the right words to search for to answer this question. I lack the necessary vocabulary.
Thanks in advance.
Comments
=-=
seems to me you can just install Drupal into your root rather then in the drupal subdirectory ?
if that isn't an option for you, you will have to seek out information on this site and google with regards to rewriting directories using .htaccess directives.
The search tool on Drupal.org really does work.
This message has been brought to you by:
the letter X , the letter Z and the number 2.
Thanks for watching! : )
The server is mine, but I've
The server is mine, but I've got drupal installed already...there must be an easier way than reinstalling the whole thing, right?
Any other ideas?
=-=
Drupal is modular, you don't have to install it again, you can just move it. Everything is relative to index.php not to the folder itself. unless you've been using absolute urls for content.
I'd shut off clean urls if they are on.
move the files
turn clean urls back on.
The search tool on Drupal.org really does work.
This message has been brought to you by:
the letter X , the letter Z and the number 2.
Thanks for watching! : )
Really??
Isn't it going to just be easier to reconfigure apache? This sounds like it would work, but I have this installed on Ubuntu 7.04, and I know there are links pointing here and there within the file system (I installed it via apt-get install drupal-5.1).
I don't mean to be unappreciative, but this sounds like overkill, and like it might break something else.
One more time, any other ideas out there?
Thanks again.
Fixed it...I think...
So, I didn't really like that solution (though I thank you anyway), so I went and changed the file called 'default' that was in the directory /etc/apache2/sites-available/.
In there, it had a directive called Document root that was pointing to /var/www. I changed that to point to my drupal installation, and that seemed to do the trick once I restarted apache (sudo apache2ctl restart).
Hopefully this won't break anything else...I'm a bit scared.