svn commit: r40439 - head/en_US.ISO8859-1/htdocs
gjb at FreeBSD.org
Mon Dec 24 18:46:36 UTC 2012
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
> > >
> > > 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.
Ugh. I didn't notice the CSS originally. Thanks.
Perhaps a 404 rewrite to /4xx.html would be best.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 488 bytes
Desc: not available
More information about the svn-doc-all