Htaccess subfolders accessing problem
I'm in a situation where I use the complete url query string in a framework, but when the request is for a file with a certain exentension, apache needs to process this file. The htaccess looks like this:
The problem I have is that if the request url string starts with a name of one of the subdirectories in the folder and a slash, apache goes into this directory and doesn't call the index.php of the htaccess folder.
php_value gpc_magic_quotes off
php_flag magic_quotes_gpc off
RewriteRule ^(.*\.(jpg|gif|png|css|js|txt|mpg|wmv|avi|pdf|php|html|reg))$ $1 [L]
RewriteRule ^(.*)$ index.php?requestUrl=$1 [L]
What I need is a way to prevent apache from going into any subdirectories, unless the first rewrite rule is correct (request ends on . and some extension)
Has anybody done this before or knows how to do this?