ContextRouter
contextrouter
About
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.
Installation & usage
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.
At a glance
MODX 3 compatible.
- Developer markh
- Latest release December 5, 2018 (7 years ago)
- First seen in SiteDash December 5, 2018 (7 years ago)
- License MIT
- MODX support 2.0 – 100.0
| Changelog | |||
|---|---|---|---|
| MODX.com |
1.2.0-pl |
December 5, 2018
7 years ago |
|
|
<p><b>ContextRouter 1.2.0-pl, December 5th 2018</b></p><ul><li>Work around modContext ACLs to prevent sites from becoming inaccessible when a non-authorized user causes the cache to be cleared [#5]</li><li>Allow using OnMODXInit instead of OnHandleRequest event</li><li>Minor codes style tweaks</li><li>License updated to MIT instead of GPL v2</li></ul><p><b>ContextRouter 1.1.0-pl</b></p><ul><li>(pl2) Fix unproperly prefixed system settings.</li><li>Big refactoring, now has a class handling the thinking.</li><li>#2 Added includeWww option (ON by default) which optionally also looks out for www.* hosts.</li><li>#3 Added support for http_host_aliases context setting, which allows different http_host values routing to one context.</li></ul>
|
|||
| MODX.com |
1.1.0-pl2 |
July 18, 2012
14 years ago |
— |
|
No matching releases. |
|||
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.