- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Tue, 26 Oct 1999 20:21:29 +0200
- To: "Gerald Oskoboiny" <gerald@w3.org>
- Cc: <www-validator@w3.org>
| > sub redirect_to_home_page { | > print "Status: 301 Moved Permanently\n"; | > print "Location: http://validator.w3.org/\n\n; | > | > &clean_up_and_exit; | > } | | I tried that, but the Apache we're currently using (1.3.6) didn't | generate HTML output: | | maybe this feature was added to a more recent version of Apache? Strange. When I only print the Location statement without any Content-Type or Status information, a HTML Output is generated (with status 302). Ok, so sub redirect_to_home_page { print <<"EOF"; Status: 301 Moved Permanently Content-Type: text/html;charset=iso-8859-1 Location: http://validator.w3.org/ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>301 Moved Permanently</TITLE> </HEAD><BODY> <H1>Moved Permanently</H1> The validation service has moved <A HREF="http://validator.w3.org/">here</A>.<P> </BODY></HTML> EOF &clean_up_and_exit; } or alike would be a better solution. regards, Björn Höhrmann -- http://www.bjoernsworld.de
Received on Tuesday, 26 October 1999 14:24:25 UTC