httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Wilga <dwi...@MtHolyoke.edu>
Subject [users@httpd] Re: OT: Refresh and different browsers
Date Fri, 23 Jul 2004 13:07:46 GMT
>If they are, a simple index.cgi generates a refresh with url = to the
>$REMOTE_USER learned from the authentication. The output looks
>like this for the username "mlm":
>
><head>
><meta http-equiv="refresh" content="0; url=/~mlm/">
></head>

This would probably work with the browsers you listed if you were to 
wrap this in <html>...</html>. However, this tag is not recognized by 
some older browsers. The better way is to sent an HTTP redirect 
header, instead of HTML code:

#!/usr/bin/perl -w
print "Status: 301\n";
print "Location: http://www.myhost.com/~mlm/\n";
print "\n";

Note that you should include a fully-qualified URL (not a relative 
one), if you use this method.
-- 
Dan Wilga                                         dwilga@mtholyoke.edu
Web Technology Specialist                     http://www.mtholyoke.edu
Mount Holyoke College                                Tel: 413-538-3027
South Hadley, MA  01075            "Who left the cake out in the rain?"

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message