I want everything to be redirected to index.php, so I thought this should work:
RewriteEngine on
RewriteRule ^(.*)$ /index.php?url=$1 [L]
..but it doesn't. This very similar RewriteRule does work though:
RewriteEngine on
RewriteRule matches/(.*) /index.php?url=$1 [L]
I later found out that to make the first one work you need:
RewriteCond %{REQUEST_FILENAME} !-f
Can someone please explain why the last RewriteCond is needed in the former example but not the latter?