According to Schmidt, Bert:
> I use a htdig installation with htsearch in
> "<webserver-root>/cgi-bin/htsearch" and searching works fine.
>
> But when I have many hits and like to use $(NEXTPAGE) and $(PREVPAGE) for
> navigation htdig usually generates a relative link
> "cgi-bin/htsearch?...page=2". Because the current page is already in
> "cgi-bin" the browser tries to connect to
> "<webserver-root>/cgi-bin/cgi-bin/..." and the link doesn't work.
>
> So what ist wrong? Why does htsearch not generate a link which starts with
> "/" ?
htsearch gets the name of the CGI program from the SCRIPT_NAME environment
variable. This is usually set to a full URI pathname, i.e. starting with
a leading slash, by the web server. It would appear that your web server
is misbehaving, or a CGI or PHP wrapper is mucking things up. You can
override the name htsearch uses by setting the "script_name" config
attribute in your htsearch config file.
See http://www.htdig.org/attrs.html#script_name
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
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