I use .htaccess Mod Rewrite to send the URL to index.php, which then parses the URL and builds each page of my website. This works perfectly fine, allowing me to easily manage clean URLs using PHP instead of .htaccess.
Ex: http://domain.com/some/url/here/ -> goes to index.php, which loads a page with multiple PHP files put together
However, I'm trying to allow certain PHP files to load as regular PHP files (without sending the URL to index.php to parse).
Ex: http://domain.com/some/url/here/ still works as mentioned above. http://domain.com/specialexception.php will load as a regular php file, without sending to index.php
I have the following code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $1 !^specialexception\.php$ [NC]
RewriteRule !\.(css|gif|jpg|png|ico|txt|xml|js|pdf|htm|zip)$ /path/to/index.php [NC,L]
</IfModule>
However, the RewriteCond line is simply ignored right now.
I would appreciate any help/ideas!
Thank you.