I've got a small problem. I've got a good setup which mod rewrites all requests to the site - the only thing is it also rewrites directories which I don't want to be included.
I'm using this code in my .htaccess file:
RewriteEngine on
RewriteRule ^([^/\.]+)/?$ index.php?section=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?section=$1&page=$2 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?section=$1&page=$2&split=$3 [L]
Ideally I'd like to be able to exclude two directories - access/ and edit/ - edit/ also needs to have it's own set of rules:
RewriteRule ^([^/\.]+)/?$ index.php?action=$1 [L]
I can get around this problem by linking directly to the .php file in either directory, but this isn't ideal.
Any advice?