Hi Guys,
I have a question, when using http://www.yiiframework.com/doc/guide/1.1/en/topics.url#parameterizing-hostnames
do i have to point the subdomain to the same dir as the main app? or do i have to create the another app.
I have done this in my config file
.
.
.
"http://{$domain}/<slug:[\w-]+>/nutrition-calculator" => 'restaurant/calculator/view',
"http://{$domain}/<slug:[\w-]+>/menu" => 'restaurant/menu/index',
"http://{$domain}/<slug:[\w-]+>/ingredients" => 'restaurant/ingredients/index',
"http://{$domain}/<slug:[\w-]+>/ingredient/<id:\d+>/<ingredientSlug:[\w-]+>" => 'restaurant/ingredients/view',
"http://{$domain}/<slug:[\w-]+>/<itemSlug:[\w-]+>' => 'restaurant/menu/viewItem",
"http://<type:premium>.{$domain}/<slug:[\w-]+>" => 'restaurant/calculator/view',
.
.
.
when a user visits http://subdomain.domain.com its shows the same content as http://domain.com
Is there a way to prevent that?