Is it possible to point two subdomains to the same context


I have a context that uses the subdomain I would also like to point to the same context.

Step to reproduce

I thought duplicating the http_host and site_url settings would work, but I am unable to save the duplicate setting.

Expected behavior

An end user could use either or to get the resources stored in the context.


MODX 2.8.5 on MODXCloud using xrouting to handle the contexts.

I think it should be possible.

But you probably have to create your own routing plugin, instead of using XRouting.

You can use the http_host_aliases context setting to add a comma separated list of additional hostnames.


Jako, that worked! Thanks so much


This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.