Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2012 18:31:43 +0000 (GMT)
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        Glen Barber <gjb@FreeBSD.org>
Cc:        svn-doc-head@FreeBSD.org, svn-doc-all@FreeBSD.org, Hiroki Sato <hrs@FreeBSD.org>, doc-committers@FreeBSD.org
Subject:   Re: svn commit: r40439 - head/en_US.ISO8859-1/htdocs
Message-ID:  <alpine.BSF.2.00.1212241826000.27184@thunderhorn.york.ac.uk>
In-Reply-To: <20121224140552.GA1440@glenbarber.us>
References:  <201212202155.qBKLtjo0029127@svn.freebsd.org> <20121224.185149.1228484919356183643.hrs@allbsd.org> <20121224140552.GA1440@glenbarber.us>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 24 Dec 2012, Glen Barber wrote:
> On Mon, Dec 24, 2012 at 06:51:49PM +0900, Hiroki Sato wrote:
> > gj> Log:
> > gj>   Add a 404 page handler so we can use a presentable 404 message instead
> > gj>   of the stock message.
> > gj>
> > gj>   Requested by:	db
> > 
> >  This does not work for invalid URLs with deeper levels like
> >  http://www.freebsd.org/test/test because all of URL references are
> >  relative.
> > 
> 
> Hmm.  The 404 error page handler should be "/4xx.html", not "4xx.html".
> I'll ping webmaster to see what the actual configuration entry is.

I suspect that the handler is set up correctly.

The issue here is that the page itself is generated containing relative 
links, so that even though it may end up beingdisplayd as 
http://www.freebsd.org/test/test for example, the page still contains 
relative links such as:

<link rel="stylesheet" media="screen" href="./layout/css/fixed.css?20121213" type="text/css" />
<a href="./about.html">About</a>

none of which exist relative to /test/test

I don't know the correct solution to this, though.

Gavin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1212241826000.27184>