Subject: RE: [htdig] URL substitution (or other solution)
From: Bruce Fancher (firstname.lastname@example.org)
Date: Wed May 24 2000 - 15:26:00 PDT
Thanks for the responses, but I'm still having problems with this feature.
I want to index everything at http://docmaster.minvdox.com/indexer/ and then
rewrite the URLs when the search results are returned so that e.g.
So, I added the following to htdig.conf:
url_part_alias: http://docmaster.mindvox.com/indexer *1
I copied htdig.conf to htsearch.conf and changed the last line of the new
url_part_alias: http://docmaster.mindvox.com/staticpage *1
then I did this:
# htdig -c /opt/www/htdig/conf/htdig.conf
# htsearch -c /opt/www/htdig/conf/htsearch.conf
Enter value for words: insurance
(etc . . .)
(etc . . .)
What am I doing wrong?
Also, where are the paths to the config files set besides -c? Is there a
way to have one main config file and only put the differences in seperate
> -----Original Message-----
> From: Geoff Hutchison [mailto:email@example.com]
> Sent: Wednesday, May 24, 2000 12:06 PM
> To: Bruce Fancher
> Cc: firstname.lastname@example.org
> Subject: Re: [htdig] URL substitution (or other solution)
> On Wed, 24 May 2000, Bruce Fancher wrote:
> > Is there someway to have rewrite urls either a) as they are added to the
> > database or b) as they are retrieved and displayed through the
> template so
> > that e.g.
> > http://hostname/pagename.html
> > becomes
> > http://hostname/cgi-bin/program/loadpage?pagename=pagename.html
> You want to use the url_part_aliases attribute. You set up this in your
> digging config file:
> url_part_aliases: http://hostname/ *1
> Then you make up a *new* config file for searching with this:
> url_part_aliases: http://hostname/cgi-bin/program/loadpage?pagename= *1
> -Geoff Hutchison
> Williams Students Online
> To unsubscribe from the htdig mailing list, send a message to
> You will receive a message to confirm this.
To unsubscribe from the htdig mailing list, send a message to
You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Wed May 24 2000 - 13:16:04 PDT