Deliver different content by user agent and host

Hi to all,

I’m currently working on a project that should share the db but could be
accesed throw different domains, ie: www.site1.com, www.site2.com, etc.
My
question here is how to use different views depending on the site it’s
requested, I know about request.host, I’m just wondering about a “clean”
way
of doing it.

Another layer of complex is that I need to send different content based
on
the user agent of the client, this is for host WML and HTML versions of
the
site.

Thanks,
Angel

Im not an expert on this sort of things, but wouldn’t it be smarter to
use a shared database server and then connect to it from both sites,
that way rendering/using different applications/views. Thoughts?

Yep, I think it’s the best too, but I just wanted to know how is the
other
option to compare it.

Also I still need to solve the issue about many user agents :S

Thanks,
Angel

2007/8/11, Glimjaur [email protected]: