Answer the question
In order to leave comments, you need to log in
How to implement urlManager for automatic subdomains?
Hello!
I’ve been dripping for a long time, tell me how you can make aliases of different subdomains on YII2
When you enter moscow.site.ru -> in the contact information, information from the database (Company) was displayed if this url was available, the contact information of the Moscow office was displayed
When entering, for example, kazan.site.ru information about the office in Kazan was loaded.
I understand that you first need to configure the domain of the form *.site.ru on a server with support for automatic subdomains
, but I still don’t understand in UrlManager and how to bring this whole thing into the controller
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