Default Controer

hw to change default cntroller in yii2?

in main.php

‘defaultRoute’ => ‘site/home’,

is it working?

Check this section of the Yii2.0 guide - http://www.yiiframework.com/doc-2.0/guide-structure-controllers.html#default-controller