I\'m trying to create a rule used in a .htaccess file to match anything but a particular string, in this case: index.
index
I thought that it sho
You can use RewriteConds to do this, for example:
RewriteCond
RewriteCond %{REQUEST_URI} !^index RewriteRule (.*) index.php?what=$1
That will rewrite every URL which doesn't start by index. If you want it to avoid it anywhere in the URL, remove the ^
^