最终配置如下:
<IfModule mod_rewrite.c>
Options +FollowSymli
RewriteEngine on
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1
</IfModule>
这样就出现问题了
例:项目App中有个目录Api
https://xxxx/Api 这样访问就会丢失Post数据
https://xxxx/Api/ 这样访问不会丢失Post数据
当Api目录不存在是两种访问都没问题
最佳答案