0
我使用Yii2和我有这样的配置:Yii2 URL i8n不工作
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'<language:\w{2}>/<_c:\w+>/<_a:\w+>'=>'<_c>/<_a>',
],
],
使用这个网址是OK:
http://localhost/webapp/it/site/index
但是使用这个网址将不会运行:
http://localhost/webapp/it/site/folder/index