i have this routing set up

/user/id
/user/id/project

if you went to "www.myhost.com/user/id", you'll see a page with a link
on it generated by h.url_for() containing "user/id/project" thus
bringing you to "www.myhost.com/user/id/project"

i now want to map a custom domain that my webserver would rewrite as

www.example1.com/(.*) => /user/1/$1
www.example2.com/(.*) => /user/2/$2

however, h.url_for() generates links from the root path, so i would
end up on a 404 page like this

"www.example2.com/user/2/project" instead of "www.example2.com/
project"

ideally, i would want both www.example2.com and www.myhost.com/user/2
to both work, rather than to break one at the sacrafice of the other.

has anyone come up with a satisfying approach to this?

or is their a way to get h.url_for() to output URLs not set from the
root webpath?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to