我打开urlManager之前,写了规则的GII-发电机曾在访问发电机GII,Yii2
主机名/的index.php?R = GII
在那之后,我转身对urlManager主机名/ gii不起作用 也许是他写规则?但是如何? 选项
'GII'=> 'GII' 或 'GII'=> 'GII /指数',
不工作
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'/' => 'site/index',
'about' => 'site/about',
'contact' => 'site/contact',
'login' => 'site/login',
'entry' => 'site/entry',
'gii' => 'gii',
'country/page/<page:\d+>' => 'country/index',
],
],
你开启可以参考[在URLManager中使用漂亮的URL](http://www.yiiframework.com/doc-2.0/guide-runtime-routing.html#using-pretty-urls)与[Web服务器配置](http://www.yiiframework.com/doc-2.0/guide-start-installation.html#recommended-apache-configuration)。 –
更新您的问题并显示您的urlManager配置..请 – scaisEdge