I have a project on Yii2 advances app. And I have created a module named 'sale' on front end, Where I have extended layouts of frontend. And now I just want to access that module as a subdomain like http://sale.example.com
.
I have created subdomain sale.example.com
and set it's document root to root folder public_html
(sites's root folder).
I have configures my urlManager
like 'http://sale.example.com' => 'sale/default/index',
according to Yii2 DOC. And it working fine but all my navigation gone wrong. I mean I think app's homeUrl
is not pointing to default site url. My entire url
system is changed after sub domains like http://sale.example.com/contact
, But this is supposed to be http://example.com/contact
. Here is a snapshot.
Thanks in Advance.