1.在原來tp5.1手冊給的基礎上 修改倒數第二行的代碼 加一個?
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
詳情請看 : https://blog.csdn.net/qq_36370731/article/details/72084031