I am trying to structure a Rewrite Rule that would apply to all .php pages with exception of 2 specific .php pages (lets call them abc.php and def.php). I am having trouble figuring out the syntax to accomplish this. Specifically, my difficulty resides in generating the "and not" boolean logic. I have been experimenting by combining the following 3 structures but have not been able to get the proper functionality as of yet. Any help would be appreciated.
\.php
!(abc\.php)
!(def\.php)
My other difficulty is testing. How can you cause the RewriteRule to output a test string (or otherwise somehow indicate) if the conditions are met?
Thanks for your help.