By ljCharlie on
I very much like to try Drupal but I wonder if I can install and use Drupal in a subdirectory other than the root directory of my website. Is this possible?
Your help is much appreciated.
I very much like to try Drupal but I wonder if I can install and use Drupal in a subdirectory other than the root directory of my website. Is this possible?
Your help is much appreciated.
Comments
Yes
Easily, no problem at all.
Darius
change settings.php
You only have to change the $base_url in sites/default/settings.php
Thank you so much! I'll give
Thank you so much! I'll give that a try tonight.
i have the same setup -
i have the same setup - drupal in a sub-directory of the root. eg
http://www.mysite.com/drupalquestion: is there a way where the browser will understand
http://www.mysite.cominstead?If so how do I can I go about it? thanks
if I understood correctly
if I understood correctly your question you want to type the address www.mysite.com and want this to point to www.mysite.com/drupal.
If this is the case than the solution is very simple (although outside drupal). Just put an index file in the root of www.mysite.com with a redirection to mysite.com/drupal
For instance write an "index.php" file with the following content:
you can skip the 'Moved Permanently' line but it is advisable for SEO purposes... ;-)
Hope this helped
Thanks
Thanks Gigi,
I was just going to google trying with URL rewrites (not that i know how to) until I saw your reply. Thats what I meant and it does redirection just fine.
But just to push this further along, is it possible to maintain the browser's URL display at
www.mysite.comAFTER the redirection? It currently showswww.mysite.com/drupal, as would be expected, since thats where the page is.Okay, I finished the
Okay, I finished the installation. Here's the error when I tried to create a page.
user error: Access denied for user: 'dbauser@localhost' to database 'drupal'
query: LOCK TABLES sequences WRITE in /home/mySite/public_html/drupal/includes/database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent by (output started at /home/mySite/public_html/drupal/includes/common.inc:384) in /home/mySite/public_html/drupal/includes/common.inc on line 192.
I just found that the page,
I just found that the page, which is static, is display on the website but I don't understand why it gave me that error message.
Check for extra blank lines
at the end of config.php file
I do not see the config.php
I do not see the config.php file in the drupal folder. I only see the settings.php file. And this file does not have extra space before or after.
what you want is probably
what you want is probably what is called "url cloaking".
As far as I know you can do this only with frames (and maybe some voodoo apache server magic I'm not aware of).
Still helpful
I know this solution was posted in 05, but it's still helpful.
I just ran into the same problem, and fixed it with a simple index.php as stated by GentleArsonist.
So, thanks.
This is an open issue, see http://drupal.org/node/22336
I believe you are looking for is this open issue, including a php hack I've yet to test:
Core Drupal in its own directory, configuration, modules and themes in custom
http://drupal.org/node/22336
good luck.
Thanks, that's a useful
Thanks, that's a useful link.
Seem like there's no update
Seem like there's no update for that.
A useful link on this topic
This is an old thread but still relevant and helpful. I found this link useful.