thinkphp6 thinkphp5.1 phpstudy隐藏index.php

apache的重写规则如下:

<IfModule mod_rewrite.c>
    Options +FollowSymlinks -Multiviews
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

 

posted @ 2019-02-25 21:49  山上小和尚  阅读(1661)  评论(0编辑  收藏  举报