Gossamer Forum
Home : Products : Gossamer Links : Discussions :

inktomi mod

Quote Reply
inktomi mod
Could anyone provide with a 'replace this code' with 'this code' type answer for adding a (if no results are found search this site) search results mod for links sql search.cgi

Quote Reply
Re: inktomi mod In reply to
i'm looking for this as well. it worked for links2 and i contacted alex about it but could not get it to work.
here is the code for links2, maybe a prgrammer can modify it to work for links sql. it's in seach.cgi:
# Word is too common, don't try and sort it, can cause problems.
if ($numhits == 0) {
$redir = $in{'query'};
$redir =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%x",ord($1))/eg;
print "Location: http://www.mydomain.com/phod.php?search=$redir\n\n";