在目录下新建一个.htaccess文件里面写入RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]开启路由:'URL_ROUTER_ON' => true, //URL路由'URL_MODEL' => 2, // URL模式看下收册里的就行了。其实手册写得很全的!