On Tue, 10 Jul 2001, Geoff Hutchison wrote:

> Date: Tue, 10 Jul 2001 10:51:33 -0400 (EDT)
> From: Geoff Hutchison <[EMAIL PROTECTED]>
> To: Dante Picca <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [htdig] htdig and relative urls
> 
> On Thu, 10 May 2001, Dante Picca wrote:
> 
> > I need not to have http://users.mysite.it/dirs/page.htm but I need to have
> > http://foo.mysite.it/dirs/page.htm or /dirs/page.htm
> > is it possible ?
> 
> Yes. You'll want to use the url_part_aliases attribute and set up a config
> file for indexing and a separate one for searching.
> 
> indexing.conf:
> url_part_aliases: http://users.mysite.it/ *2
> 
> searching.conf:
> url_part_aliases: http://foo.mysite.it/ *2
> 
> <http://www.htdig.org/attrs.html#url_part_aliases>

To get a pure relative URL page in order to have the browser prepend the
rest of the URL you can do:

indexing.conf:
url_part_aliases: http://users.mysite.it/ *2

searching.conf:
url_part_aliases: /./ *2

First I tried it with just "/", but if you do it like:

searching.conf:
url_part_aliases: / *2

You would get a premature end of script error in your server error log.  
There may be a way to patch htlib/HtWordCodec.cc to allow that too.  I
think it expects more than one character;-/

Regards,

Joe
-- 
     _/   _/_/_/       _/              ____________    __o
     _/   _/   _/      _/         ______________     _-\<,_
 _/  _/   _/_/_/   _/  _/                     ......(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ah        [EMAIL PROTECTED]


_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to