Help with URL subdomain

I am trying to make a subdomain using yii url manager but I can’t make it work.

Here is my code:




'urlManager'=>array(

            'urlFormat'=>'path',

            'showScriptName'=>false,

            'rules'=>array(

                'auto.example.com' => 'auto/list',


            ),


            ),



I am new to yii so please help me.

Hi, you have to provide full host info then:


'http://auto.example.com' => 'auto/list',



Hi,

Thank you for replying. Also tried it but it still doesn’t work

Another follow up question:

I have a controller named auto so using url manager I will be able to use the url example.com/auto which worked but all of a sudden it doesn’t work anymore instead it is looking for an index file in a folder named auto. But if I changed the url to example.com/Auto the url works fine. What supposed to be causing this problem?