>
> All I do to handle sub-domains is check to see if the sub-domain matches a
> user sub-domain. For example:
>
> user =
> db(db.auth_user.sub_domain==request.env.http_host.split('.')[0]).select().first()
> or ''
>That is almost exactly what I want. It is not routing in the sense of going to a different app or controller but capturing for (in my case) a combination of auth (is the current user authorised to access this clients data?) and data filter (only show data for this client). Thanks Dave -- Dave Warnock: http://42.blogs.warnock.me.uk Cycling Blog: http://42bikes.warnock.me.uk

