Hi,

Nothing to do with the previous thread, but this is something that
always annoys me a bit in the following syntax. I'm sure most people are
aware about that, but I thought I'd hammer the nail once more.

On Sun, Aug 15, 2010 at 10:51:32PM -0400, David Hill wrote:
> # cat why.html
> <html>
> <head>
>         <meta http-equiv="refresh"
> content="0;url=http://www.trollaxor.com/2010/06/why-i-left-openbsd.html"; />
> </head>

The proper way to do redirection is via the HTTP 30x status codes.  This
is easily done e.g., with httpd in a .htaccess (or other configuration)
file as

  Redirect /why.html http://www.trollaxor.com/2010/06/why-i-left-openbsd.html

Though it works with standard (i.e. quite likely all) clients, it loses
the semantics of the redirection at the HTTP level and moves it into the
contents of the page, which is not quite right [0]. The refresh META
should only be used to, unsurprisingly, refresh the current page at a
given frequency.

The only thing thus rendered impossible is a redirection to another page
after a given period. But I have troubles coming up with a scenario
requiring it which couldn't be handled in other ways.

Just thought I'd rant about it (;

[0] http://www.w3.org/QA/Tips/reback

--
Olivier Mehani <sht...@ssji.net>
PGP fingerprint: 4435 CF6A 7C8D DD9B E2DE  F5F9 F012 A6E2 98C6 6655

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to