L
L
Loner972019-03-28 10:15:43
MODX
Loner97, 2019-03-28 10:15:43

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

1 answer(s)
A
Anton Tarasov, 2019-03-28
@an-tar

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.

Does routing say anything about this? maybe errors in the log?
I always implemented multi-domain without it, there were no problems ... maybe try to turn it off and explicitly set full addresses and paths in the contexts?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question