Routing Subdomain When Code In Subfolder

Hi there,

I follow guide h.t.t.p://www.yiiframework.com/doc/guide/1.1/en/topics.url#parameterizing-hostnames to config routing for subdomain.

All subdomain routings, e.g:


array(

    'h.t.t.p://<user:\w+>.example.com/profile' => 'user/profile',

)

are very well when my code at root folder of example.com.

But when my code in a subfolder, e.g myproject and I try used bellow rule:


array(

    'h.t.t.p://<user:\w+>.example.com/myproject/profile' => 'user/profile',

)

(Because I can’t embed link in my post so I replace http to h.t.t.p)

then CUrlManager class can’t match my rule.

How can I do in this case?

Sorry for my english and thank you!