有无后缀都可访问,怎么默认url是.html后缀
1 'urlManager' => [ 2 'enablePrettyUrl' => true, 3 'showScriptName' => false, 4 // 'enableStrictParsing' => false, 5 // 'suffix' => ".html", 6 'rules' => [ 7 //'<controller:\w+>/<action:\w+>/<lang:\w+>'=>'<controller>/<action>', 8 9 '/<lang:\w+>/contact'=>'web/contact', 10 '/<lang:\w+>/index'=>'web/index', 11 '/contact'=>'web/contact', 12 '/contact.html'=>'web/contact', 13 '/index'=>'web/index', 14 '/index.html'=>'web/index', 15 '/<lang:\w+>'=>'web/index', 16 ], 17 ],