Page 1 of 1

How can I exclude some files from existing in Apache?

Posted: Fri Jun 12, 2009 8:36 pm
by alex.barylski
I'm confused here to pardon my question:

Code: Select all

RewriteEngine on
 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
 
RewriteRule ^(.*)$ index.php [QSA,L]
The above is my existing .htaccess -- works great!

Although it would be even better if I could negate the effects of:

Code: Select all

RewriteCond %{REQUEST_FILENAME} !-d
BUT only under a single directory...namely:

Code: Select all

/scripts/
Cheers,
Alex