Re: htdig: htdig URL duplication


Knut A. Syed (Knut.Syed@nhh.no)
25 Jan 1999 12:49:29 +0100


D.P.Birchall@sussex.ac.uk (Danny Birchall) writes:

> For historical reasons we have in our server configuaration a number of
> server aliases which serve to cut out part of the URL to make it
> shorter: eg www.sussex.ac.uk/Units/foo/ becomes www.sussex.ac.uk/foo/.
>
> This causes a problem when running htdig, because inevitably somewhere
> within our document tree, pages will be referenced both as /Units/foo/
> and as /foo/. Result: ht://Dig indexes the same pages twice, with
> different URLs, and when a htsearch is run, each pages is returned
> twice, once with each URL.

Configure your Web-server to make http://www.sussex.ac.uk/Units/foo/ a
redirect to http://www.sussex.ac.uk/foo/ instead of an alias.

Documentation for Apache redirect:
<URL:http://www.apache.org/docs/mod/mod_alias.html#redirect>
(HEAD at www.sussex.ac.uk told me you were running Apache.)

~kas
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Mon Jan 25 1999 - 08:15:25 PST