S
S
sl4m_mc2018-07-06 10:11:54
MODX
sl4m_mc, 2018-07-06 10:11:54

How to use the same resources in different contexts?

Purpose: to make subdomains for different cities using contexts.
How to make the following scheme work:
site.ru/catalog
city2.site.ru/catalog
city3.site.ru/catalog
where the "catalog" resource is created in only one main context.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sl4m_mc, 2018-08-21
@sl4m_mc

I solved the issue by creating synonyms for the domain on the hosting.
Displayed different information on different domains using snippets that check the value of the $HTTP_HOST variable

R
Ruslan, 2018-07-06
@ruslan_aleev

Create symbolic links to the filled pages in new contexts and in the admin panel of the site "System Settings" select "System and Server" in the filter and set "Allow redirection through contexts" to "Yes"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question