According to Tom Gatermann:
> I'm trying to get my search results page to display
> http://gatermannt.homeip.net/ before the document or
> dir in the link.  Right now it only displays
> http://localhost/whateverisafterit
> 
> I copied my htdig.conf to search.conf.
> In my htdig.conf file I have inserted:
> url_part_aliases: http://localhost/*site \
>                   http://localhost/page/*1
> 
> and in search.conf:
> url_part_aliases: http://gatermannt.homeip.net/*site \
>                   http://gatermannt.homeip.net/*1
> 
> I put the second line in each config file as when I
> ran rundig, it complained that it saw an odd number of
> stings.

No, no!  The second string in url_part_aliases in search.conf must match
the corresponding one in htdig.conf.  Just use *1, plain and simple.  You
shouldn't try to make a whole URL out of it - that just defeats the purpose.
It's to be a compact, internal encoding.  See FAQ 4.17 and the description
of url_part_aliases.
http://www.htdig.org/FAQ.html#q4.17
http://www.htdig.org/attrs.html#url_part_aliases

Note that you'll need to rerun rundig whenever you change url_part_aliases
in htdig.conf, so the new encodings go into the database.

> My question is will this work, and if so how do I get
> the search page to access search.conf and display the
> result.  Right now I run 'rundig' and it does it's
> thing, but when I try a search I get all the links
> still with 'http://localhost/' in them.

Define the "config" input parameter in your search form to be "search"
instead of "htdig".  See http://www.htdig.org/FAQ.html#q4.2

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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