By OneSeventeen on
I recently installed drupal 4.7.0 using my host's installer script, and all is well, except I installed it to a sub-folder, and while I want the files to stay in that sub-folder, I want all of the links to be based on the main domain....
What I mean, is the following two pages are the same:
http://www.geekbrownbag.com/gbb/?q=node/3
http://www.geekbrownbag.com/?q=node/3
So I was wondering if there is a config file somewhere that I could change it to be based on the second url, since it is slightly cleaner.
Comments
htaccess redirect...
http://www.google.com/search?hl=en&q=htaccess+redirect&btnG=Google+Search
_______________
dvd search engine
Already done that
What I'm saying is my htaccess does everything required, but I need to change the default file path to "/" instead of "/gbb" in drupal.
When I hover over a link, it says "http://www.geekbrownbag.com/gbb/?q=node/3"
That link is produced by the PHP code that runs drupal.
I want the PHP variable that tells the links to start with "http://www.geekbrownbag.com/gbb/" to instead start with simply "http://www.geekbrownbag.com/gbb/"
I don't want to redirect things in apache, I just want the PHP variable to be set properly.
I'm sure there is an include file or ini file somewhere that has this, I just haven't been able to find it yet.
Or is this in the database somewhere?
Does that make sense?
How to change the default file path
I found the config file and the variable:
/drupal_root/sites/default/settings.php
Just uncommented the $base_url and set it to http://www.geekbrownbag.com
Done!
Because I already had htaccess in place to point http://www.geekbrownbag.com to http://www.geekbrownbag.com/gbb anyway, it was a no-brainer. (because that domain simply points to an existing website, and I didn't want the files to mix)
I'm just going to reinstall it anyway from scratch since the 5.x installer is insanely easy, but now I know how to modify it if I need to.