Routes mapping, subdomains and page-caching

Each of its own is no problem, but the combination of them is confusing
head !

I want to to map in routes.rb an url for an article which is identified
its permalink. The permalink is unique per subdomain.

Has anybody done that and can post an example ?

Should I do subdomain filtering in routes.rb so I can get page-cachabled
URLs (and URL rewriting in Lighttpd form subdomain-urls to
URLs as defined in routes.rb) ??

Or does there exist a better way to achive that, without additional URL
rewriting at webserver ?


I’ve been playing with different ways of doing the same thing. I’m
pretty sure theres nothing in Rails that can specifically help you
with this.

I’ve been trying to get lighty to rewrite URLs but it seems that this
doesn’t work because Rails get the original URL rather than the
rewritten one so if you come up with anything that works please let me



On 3/25/06, Roberto S. [email protected] wrote:

URLs as defined in routes.rb) ??

Dan W.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs