Vasile - Thanks for the reply - However, with my aversion to regular expressions, I chose to use the solution that Martin provided.

Thanks again.

    -Jim

On 2/2/2012 3:22 AM, Vasile Ermicioi wrote:
I will show what I use

in routes.py I have:

routes_in = (
#('/admin/(.*)', '/admin/$1'),
('(.*):https?://(www\.)?site1\.com:(.*)/', '/site1/'),
        ('(.*):https?://(www\.)?site2\.com:(.*)/', '/site2/'),
)

after you change routes.py you need to restart your server (apache, or whatever you use) if you use uwsgi and started it with touch-reload option you only need to touch the file that you passed
touch tmp/uwsgireload.txt

if you need more
http://web2py.com/books/default/chapter/29/4#URL-rewrite

Reply via email to