Try
 
url_rewrite_rules:    (.*)?.*    \\1
 
this will remove the first ? and everything after.
 
Or to be more selective:
 
url_rewrite_rules:    (.*)?iframe=.*    \\1
 
You will need to run htdig again, as these rules are enforced during the build of the search index, and are not used by htsearch.
 
 
David Adams
Corporate Information Services
Information Systems Services
University of Southampton
 
 
----- Original Message -----
From: Probe H
Sent: Thursday, September 30, 2004 3:43 PM
Subject: [htdig] how to : search result to ignore part of url

How can a search result be rewritten to ignore argument of a url

e.g.

 

http://www.domain.edu/filename.php4?iframe=1

becomes

http://www.domain.edu/filename.php4

 

Basically I want the search results to link to main part of the url ignoring any iframe info. This info is only needed when navigating to the specific page from within the sitenavigation, not sitesearch. So it should ignore "?iframe=1" and whatever follows in the search results.

  

Here is what I tried after reading some earlier remarks by Gilles R. Detillieux:

 

search_rewrite_rules:    (.*)\\?iframe=1.* \\1

 

I added this line (above) to the end of the "htdig/conf/htdig.conf" file, but links still appear as http://www.domain.edu/filename.php4?iframe=1 in search results.

  

Thank you very much for any suggestion !



Express yourself instantly with MSN Messenger! Download today - it's FREE! ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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

Reply via email to