Re: Document not found - http://www.freebsd.org/porters-handbook/index.html

[ Available lists | Index of freebsd-doc | Month of Jun 2002 | Week of 27 Jun 2002 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Wouter Van Hemel <wouter@pair.com>
Date
27 Jun 2002 05:17:48
Subject
Re: Document not found - http://www.freebsd.org/porters-handbook/index.html
Message-ID
1025180271.260.70.camel@cocaine

In reply to
Replies

[ Hide this part ]
On Thu, 2002-06-27 at 00:16, Nik Clayton wrote:
> On Wed, Jun 26, 2002 at 01:24:50AM +0300, Giorgos Keramidas wrote:
> > On 2002-06-25 23:41 +0000, Aidan Saunders wrote:
> > > http://www.freebsd.org/handbook/ports-trouble.html#PORTS-BROKEN
> >
> > Try starting at:
> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-trouble.html#PORTS-BROKEN
> >
> > BTW, this is a known problem,
>
> And it's really time we fixed it. The best idea I've come up with so
> far is to have a .htaccess file in the root of the web server tree that
> issues permanent redirects from /handbook/ and /FAQ/ to the appropriate
> directory under /doc/...
>
> The symlinks can remain for the time being, but we should aim to nuke
> those as well.
>
> Any thoughts? Perhaps someone can knock up a quick proof of concept?
>

With .htaccess, it would be something like:

Redirect 301 /handbook http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

(try http://www.rantakoski.com/handbook for just that)

According to apache documentation 301 = perm, 302 = temp, 303 = seeother
and 410 = gone (completely removed)... You could also use
RedirectPermanent and drop the number - same result. You need mod_alias -
which is enable on most servers, I guess.

The problem is that the thing needs to be an full url, I _think_, which
would make things harder for mirrors. And 'alias' is not allowed in
.htaccess files.

Having a simple index page with meta redirects in it, is another option.
With meta-tags:

<html>
<head>

<meta http-equiv="refresh" content="5;url=http://www.freebsd.org/doc/etcetc/">
<title>redirection</title>
</head>
<body>

If you are not redirected automatically in 5 seconds, click <a
href="/doc/etc">here</a> to proceed.

</body>
</html>

... but I guess you know these things.


Fixing this will basically half the traffic to this list. :)


wouter




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message



Elapsed time: 0.191 seconds