mstrelan
asked on
mod_rewrite two subdirectories to root index.php, everything else to index.html
Hi experts,
I have a drupal multisite set up with two subdirs (as symbolic links) and drupal running in the root dir. I need to modify the .htaccess file so that requests to the subdirs go to the index.php file (standard drupal behaviour) but any request outside of those subdirs go to index.html
Any suggestions? attached is the relevant section from the drupal default .htaccess file
I have a drupal multisite set up with two subdirs (as symbolic links) and drupal running in the root dir. I need to modify the .htaccess file so that requests to the subdirs go to the index.php file (standard drupal behaviour) but any request outside of those subdirs go to index.html
Any suggestions? attached is the relevant section from the drupal default .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
ASKER
Sorry I was specifically after a subdirectory, not a subdomain.
As an example, if you have say a 'testing' subdirectory, which index.php file do you want it to access?
/testing/index.php
_or_
/index.php
/testing/index.php
_or_
/index.php
ASKER
/index.php
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I suggest you do it this way.
^subdomain\.maindomain\.co