Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2012 13:46:30 -0500
From:      Glen Barber <gjb@FreeBSD.org>
To:        Gavin Atkinson <gavin@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:  <20121224184630.GE1440@glenbarber.us>
In-Reply-To: <alpine.BSF.2.00.1212241826000.27184@thunderhorn.york.ac.uk>
References:  <201212202155.qBKLtjo0029127@svn.freebsd.org> <20121224.185149.1228484919356183643.hrs@allbsd.org> <20121224140552.GA1440@glenbarber.us> <alpine.BSF.2.00.1212241826000.27184@thunderhorn.york.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--dFWYt1i2NyOo1oI9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 24, 2012 at 06:31:43PM +0000, Gavin Atkinson wrote:
> 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
> > >=20
> > >  This does not work for invalid URLs with deeper levels like
> > >  http://www.freebsd.org/test/test because all of URL references are
> > >  relative.
> > >=20
> >=20
> > 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.
>=20
> I suspect that the handler is set up correctly.
>=20
> The issue here is that the page itself is generated containing relative=
=20
> links, so that even though it may end up beingdisplayd as=20
> http://www.freebsd.org/test/test for example, the page still contains=20
> relative links such as:
>=20
> <link rel=3D"stylesheet" media=3D"screen" href=3D"./layout/css/fixed.css?=
20121213" type=3D"text/css" />
> <a href=3D"./about.html">About</a>
>=20
> none of which exist relative to /test/test
>=20
> I don't know the correct solution to this, though.
>=20

Ugh.  I didn't notice the CSS originally.  Thanks.

Perhaps a 404 rewrite to /4xx.html would be best.

Glen


--dFWYt1i2NyOo1oI9
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBCAAGBQJQ2KMGAAoJEFJPDDeguUajWwgIAKwYPOoKFhzeToMNA0mMjNQK
MJWAJgDPhRP/caNY0rWDp4CseyVSPWnZCFDZhV2mj1Oc8MN3kn7APsdQmGgC8ZE1
bofa9PVevQLdXsabg3bd6cvwAuTGRbBNeJxt5m7Qg56SRK21YR/nUzZ65NWcqhvy
rMcM0DeAybWRn/ruSaMgPmYotJKjQHCkle6X6bGS3Rxws/AyLICa77U7m1nYqbee
NX5KVT6DfMM//yG3uvlyxbPKLVDRALQZTAajfy2JSor/Ti1P+BpwMb7nG6QBC3Gk
6hNauEemW3jRxlkZSUfRRb7a+sLSXXt/ZUthKp7ZXXCTpag5Erv9yqiVC9PIlSE=
=xRIH
-----END PGP SIGNATURE-----

--dFWYt1i2NyOo1oI9--



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