Using .htaccess to reroute all requests through index.php EXCEPT a certain set of requests
snippet in htaccess

Using .htaccess to reroute all requests through index.php EXCEPT a certain set of requests

user8438

RewriteEngine On
RewriteCond %{REQUEST_URI} !^.*/(promotions|anotherone|somethingelse)($|/.*$) [NC]
RewriteRule ^(.*)$ /index.php?p=$1