How to support multi-domain

I have focus on Yii only one month, so there is amount method that not handle yet.

I just create one WebApp by yiic shell, but set a dozen domain which point to this folder. I want to redirect to the relevant module by check the domain which the user accessed through.

Are there anyone who can help? Thanks here.

Take a look at this.

Alternatively you can do with apache, with an .htaccess that use modRewrite

Aha, Thanks for your help. Problem been solved. It’s unbelievable that urlManager is so powerful.