Prepend string to output URLs

Is it possible to prepend a string to all output URLs? I am looking for
something like the relative_url_root that only does it job when
generating
the resulting html and not when analysing the request.
(If some developer wants more information on why I want this do not
hesitate
to mail me, I think I found a problem with a specific Rails setup.)