1
votes

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!

3
Why? One Drupal installation can contain multiple sites. - user142019
One Drupal installation can support multiple sites via the multisite installation (drupal.org/getting-started/6/install/multi-site) but one Drupal installation folder cannot contain another Drupal installation folder; thats what I have come to understand :P - Loveleen Kaur
I have exactly same requirement as yours. I want to run a Development server for developers to play around. My development server would be in example.com/Development whereas main server will be in example.com. I need the development server's database all separate so that it doesn't mess up with the original one. How do I do this? Can this be achieved using multi-site? - Raj Pawan Gumdal

3 Answers

2
votes

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]
1
votes

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.

:)

0
votes

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.