我有这个.htaccess文件:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
如果我理解正确,它应该:
如果创建了具有大小或符号链接的文件,则不执行任何操作,index.php在任何其他情况下重定向到。
如果我打开www.mysite.com/folder/我会得到index.php
如果我打开www.mysite.com/folder/file.php我会得到file.php
如果我打开www.mysite.com/test这不是一个folder既不是file我得到的404 error,但我应该得到的index.php。我的错误在哪里?