ContextRouter 1.1.0-pl

ContextRouter 1.1.0-pl

Released Jul 18, 2012 by markh

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.

This version is deprecated. It is recommended to use a newer version.

Download 21kb (187 downloads)
Downloads: 3,885
License: GPLv2
Requires Revolution 2.0.x or greater
Supports mysql,sqlsrv

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 RTFM, 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. 

Installation Instructions

  • Install the plugin (you're working on that, good job!)
  • Make sure your contexts have http_host context settings set.
  • (optional) Assign http_host_aliases context settings where needed to alias other hosts.
  • Clear cache via Site > Clear Cache to rebuild the cache file.
  • ContextRouter 1.1.0-pl

    • Big refactoring, now has a class handling the thinking.
    • #2 Added includeWww setting (ON by default) which optionally also looks out for www.* hosts.
    • #3 Added support for http_host_aliases context setting, which allows different http_host values routing to one context.

    Version Released Author Downloads
    3 Versions 1 Contributors 3,887 Downloads
    1.1.0-pl2 Jul, 18 2012 MarkH 3,266
    1.0.0-pl Mar, 21 2012 MarkH 434