I have .htaccess rewrite rules in my root folder and it's causing every folder to act as a vanity URL, how can I stop that?
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9:_-]+)/$ index.php?p=$1 [L,QSA]
RewriteRule ^([a-zA-Z0-9:_-]+)$ index.php?p=$1 [L,QSA]
RewriteRule ^([a-zA-Z0-9:_-]+)/([a-zA-Z0-9:_-]+)$ index.php?p=$1&s=$2 [L,QSA]
RewriteRule ^([a-zA-Z0-9:_-]+)/([a-zA-Z0-9:_-]+)/$ index.php?p=$1&s=$2 [L,QSA]
Example:
I have my standard include files in /pages/
But in /billing I have WHMCS for payment things, upon going to /billing my RewriteRules will catch /billing as trying to access a page and will send me to a 404 which is handled by my index.php, in short, how do I ignore other folders with index's?