March 2nd, 2004, 11:40 PM
Redirecting a web page on server side
Hi, I need some help here please..
I'm using apache as a web server.
How can I perform redirection on server side with python?
Thank you very much
March 3rd, 2004, 03:01 AM
If you can avoid sending any other MIME headers, Content-Type for instance all you have to do is print this...
This will redirect the page to python.org using Python CGI .
print 'Location: http://www.python.org\n'
March 3rd, 2004, 06:14 PM
A bit of a problem...
Originally Posted by netytan
Thanks for your reply.
The situation is, that I have a login page that authenticates the user,
if the user is authenticated then :
1. An header with cookie ( sessionID ) is sent to the client
2. A redirect for a different page is required.
How can I achieve that ?