Hi John,


We experienced the same problem and we solved it like this:

- Define a user-agent string in htdig.conf file, aka 
  user_agent: "htdig 3.1.6"

- Modify your dynamic PHP navigation and add a user-agent check:

if (eregi("htdig", $_SERVER["HTTP_USER_AGENT"]))
{
        print("");
}
else
{
<rest of php document>
}

Yours,

Martin

-- 

--------------------------------------------------------
 arago AG, Institut fuer komplexes Datenmanagement
 Am Niddatal 3, 60488 Frankfurt/Main, [EMAIL PROTECTED]
 Tel. 069/405680, Fax 069/40568111, http://www.arago.de
--------------------------------------------------------



On Thu, Nov 13, 2003 at 02:49:17PM -0800, John Grunder wrote:
> Dear sirs,
> 
> We have been using htDig for quite some time with pretty good results, but
> recently we crashed our Linux web server, and once I reinstalled htDig
> 3.1.6 and created the database on our web site (http://www.miis.edu) we
> began getting multiple results back on searches.  
> 
> For example: http://www.miis.edu/directory.html only contains one
> reference to my name (grunder) but 23 hits are returned.
> 
> We use a content manager that does create some PHP generated dynamic
> pages, but the majority of the pages on our live site are static, and only
> contain a bare amount of PHP code to include common menu code (this code
> is simply html code in the form of tables and graphics).
> 
> Is it possible that a PHP line like <?
> include("nav/rightnav-finaid.code"); ?> could cause multiple search hits?
> 
> The results we are getting show the same text but have links like this:
> 
> http://www.miis.edu/directory.html?PHPSESSID=ca4f024e0dbba1f7383258762e46a318
> http://www.miis.edu/directory.html?PHPSESSID=7065a69b6313c83bld15d6ffa8b5be9
> http://www.miis.edu/directory.html?PHPSESSID="different number"
> http://www.miis.edu/directory.html?PHPSESSID="different number"
> http://www.miis.edu/directory.html?PHPSESSID="different number"
> http://www.miis.edu/directory.html?PHPSESSID="different number"
> http://www.miis.edu/directory.html?PHPSESSID="different number"
> 
> Are there any configuration settings that I can include for rundig that
> would eliminate these multiple hits?
> 
> Thanks
> 
> John Grunder
> Director, Information Technology Services
> Monterey Institute of International Studies
> 460 Pierce Street
> Monterey, CA 93940  USA
> [EMAIL PROTECTED]
> (O) 831.647.6512
> (F) 831.647.4104
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> ht://Dig general mailing list: <[EMAIL PROTECTED]>
> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
> List information (subscribe/unsubscribe, etc.)
> https://lists.sourceforge.net/lists/listinfo/htdig-general

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to