thinkphp5 簡化路由省略index.php方法
如果用的是phpstudy的話
在htaccess檔案中加入這段程式碼,刪除其他的
<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>