域名为:http://www.xxx.com/index.php/index/index/index
设置默认模块为index
去除index.php/index
修改public文件夹下的.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>
在入口文件绑定模块:define('BIND_MODULE','index');