I'm using WordPress and this works fine:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
However if I add this before the last line:
RewriteRule "^/iwillnevergetmatched$" "/testfoo" [R=301]
Then in my logs:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://example.org/foo
iwillnevergetmatched
. why is it redirecting when it doesn't match.