In both url works,
and a want just the first the frendly url.
for example: mysite.com/home
mysite.com/site/index,
and I I don’t want the second, - mysite.com/site/index-, just first
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'enableStrictParsing' => false,
'rules' => [
//home
'home' => 'site/index',