[web2py] Re: routes question

2010-12-09 Thread Wikus van de Merwe
('/(.*)', '/myapp/$1'), This is not a valid Python regular expression. You are mixing here the RE syntax with the simplified web2py tags. Correct RE would be: (/(.*), r/myapp/\1) Correct web2py tags: (/$tag, /myapp/$tag)

[web2py] Re: routes question

2010-04-25 Thread mdipierro
This is described here http://web2py.com/book/default/section/4/15 The full syntax is [remote address]:[protocol]://[host]:[method] [path] so you want something like this: routes_in = ( ('(.*):https?://(.*)site1\.com:(.*) /', '/site1/default/index'), ('(.*):https?://(.*)site2\.com:(.*) /',

Re: [web2py] Re: routes question

2010-04-25 Thread Vasile Ermicioi
worked, thank you! need something like this routes_in = ( ('(.*):https?://(.*)site1\.com:(.*)/(.*)', '/site1/$4), ('(.*):https?://(.*)site2\.com:(.*)/(.*)', '/site2/$4'), ) -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

Re: [web2py] Re: routes question

2010-04-25 Thread Jonathan Lundell
On Apr 25, 2010, at 8:51 AM, Vasile Ermicioi wrote: worked, thank you! need something like this routes_in = ( ('(.*):https?://(.*)site1\.com:(.*)/(.*)', '/site1/$4), ('(.*):https?://(.*)site2\.com:(.*)/(.*)', '/site2/$4'), ) At the very least, you might want something like this: