Answer the question
In order to leave comments, you need to log in
I can't link contexts to subdomains, what should I do?
Good day. The question is next. It was necessary to divide the site into cities and subdomains, but keep centralized management. I created subdomains on the hosting, specified the folder of the main domain where MODX is installed as the root folder. Created appropriate contexts in the admin panel with parameters and values:
base_url = /,
site_url = http://subdomain.domain.ru/,
http_host = subdomain.domain.ru
Installed XRouting, updated the cache, updated the contexts, created a resource for the context, tried to browse , but it does not find it and gives out 404. If you go to subdomains through the address bar, it gives out a hosting “stub”
Answer the question
In order to leave comments, you need to log in
XRouting 1.4.x removes the php constant MODX_BASE_URL in the plugin and adds a handy debug mode where you get a lot of information about how the routing works or why it doesn't work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question