How can I exclude some files from existing in Apache?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

How can I exclude some files from existing in Apache?

Post 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
Post Reply