On Feb 17, 2010, at 5:38 AM, Wikus van de Merwe wrote:

> To get what you want you could use this two rules for routes_in:
> ('.*:https?://domain\.com:get /([a-z]+)/(.*)', r'/init/public/\1/\2')
> ('.*:https?://([a-z]+)\.domain\.com:get /(.*)', r'/init/\1/\2')
> 
> See the full doctest example: http://pastebin.com/fe773b3c
> 
> However, I'm not sure if this is a complete solution as filter_in
> function in gluon/rewrite.py is rewriting paths only, not the host
> names. So you get "http://ctr.domain.com/init/ctr/fun"; instead of
> clean "http://domain.com/init/ctr/fun";.

True, but why would it matter?

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to