http://www.kancloud.cn/manual/thinkphp5/118040
这两个是官方的方法,我是菜鸟,没弄出来,我改的地方如下图:


文件位置是public下面的.htaccess文件。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/abcd/$1 [QSA,PT,L]
</IfModule>abcd是你要替换的模块名,前面的index.php相信你们都知道,是隐藏入口文件用的 最佳答案