RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]求着4行功能解释
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]求着4行功能解释
RewriteRule ^index\.php$ - [L]仅且仅当index.php是,不做任何操作。退出RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
REQUEST_FILENAME即不是个文件也不是个目录的的所有url都搞到/index.php,退出
如果文件存在,就直接访问文件,不进行下面的RewriteRule.
RewriteCond %{REQUEST_FILENAME} !-d
如果目录存在就直接访问目录不进行RewriteRule