[Gllug] HTTP redirects failing

Robert McKay robert at mckay.com
Mon Apr 15 15:11:42 UTC 2002


On Mon, 15 Apr 2002 tet at accucard.com wrote:

>
> I've got a site that uses a simple redirect front page:
>
> 	<html>
> 	<head>
> 	<title>Redirect page</title>
> 	<meta http-equiv="refresh" content="0;http://some.where.else">

It should be this:

<meta http-equiv="refresh" content="0;url=http://some.where.else">
                                      ^^^^ url= is needed.

alternativly you could output a Location: header to redirect which
can be done with a simple CGI script:

#!/bin/sh
echo -e "Location: http://some.where.else\n\n"

or with a PHP

<? echo header("Location: http://some.where.else"); ?>

-Robert.



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list