I'm having an annoying issue where I have a .htaccess file on the / directory of my server that will have a script applied to all pages and directories. This works great except for when there is a directory with another .htaccess with its own RewriteRule in it. Has anybody ever run into this sort of issue before, and if so, how did you get around it?
Here is some sample code:
.htaccess (in /)
------------------
RewriteEngine on
RewriteBase /
RewriteRule ^(([^\/]*\/)+)_subsite_admin/(.*)$ /tools/admin/$3?calledfrom=%{SCRIPT_FILENAME}
.htaccess (in /subsite)
-------------------
RewriteEngine on
RewriteBase /subsite
RewriteRule ^search/(.*)$ search/index.cfm?search=$1\?%{QUERY_STRING} [NC,L]
Separately, they work fine (eg. when I disable one or the other), but together it breaks. If anybody could shed some light on the situation, that would rock!