SEO frendly url

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',

                






I think this should work in your case. Try this:




        'urlManager'=>[

        	'enablePrettyUrl' => true,

        	'class' => 'yii\web\UrlManager',

			'showScriptName'=>false,

			'suffix'=>'.html',

			'rules'=>[

				'<controller>/<action>'=>'<controller>/<action>',

				'<controller>'=>'<controller>/index',

			],

		],




if it does not work still, remove this line.




				'<controller>/<action>'=>'<controller>/<action>',



in .htacces can do it too