[Solar-talk] New route for hosts

Rodrigo Moraes rodrigo.moraes at gmail.com
Mon Nov 5 08:20:41 CST 2007


Hey,
Lux has a new route to match hosts: with RegexHost [1] it is possible
to switch from a subdomain-based to a directory-based uri scheme with
a single config change. For example,  in one step it moves from
http://domain.com/news/sports to http://sports.domain.com for an
entire app.

It is an extended Regex route that also matches & assembles the
hostname as in a normal route. Specially useful for subdomain
matching, but it really allows any matches related to the hostname.

just to let you know. :)

-- rodrigo

[1] http://lux.googlecode.com/svn/trunk/Lux/Controller/Route/RegexHost.php


More information about the Solar-talk mailing list