For new sites, use XRouting instead. That has the same features, and then some.
ContextRouter is a simple plug-and-play plugin allowing you to use different contexts, and, based on the http_host context settings you need to set anyway, it routes your front-end requests as required.
In essence it's like the Gateway plugin from the docs, except you don't have to manually edit the plugin: it takes the settings you have already configured in your context and routes based on that.
ContextRouter looks at your contexts' http_host as well as a comma separated http_host_aliases setting for routing based on a full domain or subdomain.
See the Documentation for more Information.
Install the plugin and make sure your contexts have a http_host variable set. If it doesn't seem to route properly, try clearing the cache to update the context - http_host caching.
- First seen
- Supported databases
- MySQL SQL Server
- Minimum MODX Requirement
|MODX.com||1.2.0-pl||2018-12-05 (4 years ago)|
|MODX.com||1.1.0-pl2||2012-07-18 (10 years ago)|
We've also seen 4 unverified versions of ContextRouter in use, but don't list those as we've been unable of confirming they are official releases from an official source.