代码:用于给路由自动添加index.php文件
记住修改下面的index.php文件 和你项目里面的一致!
RewriteEngine on
# if a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward the request to login.php
RewriteRule ^(.*)$ index.test.php?/$1 [QSA,PT,L]