Is it possible to point two subdomains to the same context

Summary

I have a context that uses the subdomain training.mpla.us. I would also like to point webinars.mpla.us 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 training.mpla.us or webinars.mpla.us to get the resources stored in the context.

Environment

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.

4 Likes

Jako, that worked! Thanks so much

roy

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”.