On Thu, 22 Jan 2009, Norman Gray wrote:
>> what's wrong with a simple web page that has a url redirect in it?
>> Presumably that's how things like the ast and topcat pages work?
>
> That works, too! This does reemphasise that there is no shortage of
> _technical_ solutions to the problem.
>
> I've always felt that, as some sort of layering violation, HTML redirects
> were rather icky, but that doesn't mean they don't work.
The http://www.starlink.ac.uk/{topcat,ast,...}/ pages use an HTTP
redirect (302 Moved Temporarily):
% telnet www.starlink.ac.uk 80
Trying 130.246.35.131...
Connected to www.starlink.ac.uk.
Escape character is '^]'.
GET /topcat HTTP/1.0
HTTP/1.1 302 Found
Date: Thu, 22 Jan 2009 13:41:27 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Location: http://www.star.bristol.ac.uk/~mbt/topcat
Content-Length: 305
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://www.star.bristol.ac.uk/~mbt/topcat">here</a>.</p>
<hr />
<address>Apache/2.0.40 Server at www.starlink.rl.ac.uk Port 80</address>
</body></html>
Connection closed by foreign host.
This works fine, and is under normal circumstances invisible to the user,
except that the URL they see at the top of the browser may not be
the same as the one they typed in (this may be regarded as a pro or
a con according to taste). It's presumably fairly easy to set up.
--
Mark Taylor Astronomical Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|