hi all,
in the past i've used the following .htaccess entries to redirect subdomains to different subdirectories:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^[dev\.]*dev.example.org [NC]
RewriteCond %{REQUEST_URI} !^/dev/.*
RewriteRule ^(.*) /dev/$1 [L]
i've usually used the above entries with a pretty vanilla .htaccess file.
how can i integrate the above mod_rewrite condition into the attached .htaccess file so that i don't break Drupal's .htaccess entries?
thanks,
david
.
.
.
.htaccess file
---
---
---
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
"(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$">
Order deny,allow
Deny from all
# Set some options.
Options -Indexes
Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More exist in
sites/default/settings.php, but
# the following cannot be changed at runtime. The first
IfModule is
# for Apache 1.3, the second for Apache 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value magic_quotes_gpc 0