Gregory (Grisha) Trubetskoy
grisha at modpython.org
Thu Jan 10 15:59:10 EST 2002
if you're using the publisher, then something like this should work: def myfunc(req): req.headers_out['Location']="http://blah/blah" req.status = apache.HTTP_MOVED_TEMPORARILY return 'You are being redirected to a <a href="http://blah/blah"> new location</a>' On Thu, 10 Jan 2002, Jonathan Gardner wrote: > def myfunc(req): > req.headers_out['Location']="http://url/to/new/location" > req.send_http_headers() > return apache.OK
|