• MODX.com

    7,733 downloads

ContextRouter

ContextRouter is an extra by markh, first released on 2018-12-05.

Package Description

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.

Usage/Installation Instructions

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.

Details

Developer(s)
markh
Released
2018-12-05
First seen
2018-12-05
License
MIT
Supported databases
Minimum MODX Requirement
2.0

ContextRouter Releases

Vendor Signature Released on
MODX.com 1.2.0-pl 2018-12-05 (5 years ago)
MODX.com 1.1.0-pl2 2012-07-18 (11 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.