A drupal site inside another drupal subdirectory
I have been trying to install a drupal site inside another drupal site subdirectory. but I get page not found errors for the inner site.
Example I have www.drupalsite.com point to folder-------->public/ and I have another drupal installation www.drupalsite.com/drupaltracker point to folder------>public/tracker/
However, whenever I try to access page for drupaltracker eg www.drupalsite.com/drupaltracker/admin/ , I get a 404 error
I have tried changing baseurl in settings.php of www.drupalsite.com/drupaltracker/ but 开发者_运维知识库still I get 404 errors. Any kind soul can provide me the right direction.
Thanks a tonne in advance!
original .htaccess have following rewrite rules:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
You need to modify root .htaccess, if you wish to have another copy of drupal in "mobile/" subdirectory. See my sample:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !^/mobile/
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
If you've got a development server, why not create a new virtual host? It will save you some trouble. Drupal isn't really built to run recursively inside another Drupal. There's no point.
If you must do this, check the .htaccess of the parent drupal and make sure there are no collisions there.
:)
I'm not sure of your purpose for wanting another drupal install inside of a drupal installation. But if you are referring to multisite you should click on that link. It provides a method to host multiple "sites" off of a common codebase.
精彩评论