Try cherrypy baseURLFilter:

baseUrlFilter.on=True
baseUrlFilter.baseUrl = "http://mysite.com";

This will set the cherrypy.request.base property to
"http://mysite.com";. You can then call for example:

cherrypy.HTTPRedirect (cherrypy.request.base + '/relative_url')

You can also use the turbogears.url function, which I believe
automatically prefixes URLs with the base.

Reply via email to