Re: [htdig] URL substitution (or other solution)


Subject: Re: [htdig] URL substitution (or other solution)
From: Geoff Hutchison (ghutchis@wso.williams.edu)
Date: Wed May 24 2000 - 09:06:27 PDT


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
http://wso.williams.edu/

------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Wed May 24 2000 - 06:55:20 PDT