[Lift] Re: a question about host based url rewriting

2009-10-03 Thread Timothy Perrett
Jeppe, you are exactly right. Doing that should work no problem. Cheers, Tim Sent from my iPhone On 3 Oct 2009, at 10:33, Jeppe Nejsum Madsen wrote: > > harryh writes: > >>> Are they essentially two independent apps in terms of templates and >>> snippets? >> >> Yes. Though they share the sa

[Lift] Re: a question about host based url rewriting

2009-10-03 Thread Jeppe Nejsum Madsen
harryh writes: >> Are they essentially two independent apps in terms of templates and >> snippets? > > Yes. Though they share the same model (+ some random extra library > code). > >> That seems like you just want a virtual host via nginx or some >> other web server. > > I could go that route.

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread harryh
> Are they essentially two independent apps in terms of templates and > snippets? Yes. Though they share the same model (+ some random extra library code). > That seems like you just want a virtual host via nginx or some > other web server. I could go that route. But then I have another app t

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread Derek Chen-Becker
Are they essentially two independent apps in terms of templates and snippets? That seems like you just want a virtual host via nginx or some other web server. Derek On Fri, Oct 2, 2009 at 10:03 AM, harryh wrote: > > > You want the foo_mobile.html template rather than the foo.html template > (or

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread harryh
> You want the foo_mobile.html template rather than the foo.html template (or > foo_en.html or foo_es.html). > > So, the rest of the logic stays the same (page access, etc.) but the > template selection is different.  Is this correct? No, not really. There isn't a 1:1 mapping of pages between th

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread David Pollak
Hmmm... this is a bit like localization. What you really want is a flag that will choose alternate templates for each page. So, if you come to http://m.harryh.org/foo You want the foo_mobile.html template rather than the foo.html template (or foo_en.html or foo_es.html). So, the rest of the log

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread Timothy Perrett
harryh, Are you using sitemap? It strikes me that if you do not want /mobile/ to be accessible, then don't include it in your sitemap, right? Cheers, Tim On Oct 2, 3:07 am, harryh wrote: > I wanthttp://m.harryh.orgto visit a mobile version of my site so I > added the following rewrite rule: >