Forum Moderators: phranque
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
</IfModule>
RewriteRule redirect/(.*)$ - [L]
or
RewriteCond %{REQUEST_FILENAME} !-l
and
RewriteCond %{REQUEST_FILENAME} -l
RewriteBase /
RewriteRule ^index\.php$ - [L] #this rule says if the request if for index.php, deliver whatever index.php has
RewriteRule test for /something in my subdirectory - [L] #deliver what's in there
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Note position of slashes and anchors.
it only works if I comment out all the WordPress rules