Answer the question
In order to leave comments, you need to log in
How to properly configure Yii2 to work on subdomains?
All subdomains of the site lead to the main directory, but when you open a subdomain, everything works except for including styles.
That is:
site.ru/css/site.css - opens.
subdomain.site.ru/css/site.css - 404 error.
At the same time, bootstrap styles are connected normally.
Subdomains are implemented through links, that is, on hosting in the root folder there is a directory "subdomain.site.ru" which is a link to the directory "site.ru"
What rules or parameters are missing in the yii2 settings so that everything works correctly?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question