Route To A Starting Page

Does yii has a config setting for routing to a specific page ?

For example I want my routing configurations works like follows :

http:/example.com - to access /myproject_name/frontend/web/index.php

Try this (your main config):





$config = [

    'defaultRoute' => 'post/index',


...



OR in Components section:




        'urlManager' => [

            'enablePrettyUrl' => true,

            'showScriptName' => false,

            'rules' => [

                ''=>'post/index',

            ],

        ],



Thank you alex . What do I want is to be redirected to myproject_name/frontend/index.php once I access myproject_name . I have allready defined urlManager’s component params .