Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] relative path problem

From: Lykins, Patrick <PLykins(at)not-real.fghi.com>
Date: Thu Jun 19 2008 - 18:05:31 GMT
Try replacing the line
#ReplaceRules replace cgi-bin/swish/site_search/ /
with
ReplaceRules replace "cgi-bin/swish/site_search/" "/"

I'm not sure if the quotes matter but that is how my script is setup. 

Patrick L. Lykins
System Analyst II
Fairmont General Hospital
304-368-4572
plykins@fghi.com

-----Original Message-----
From: users-bounces@lists.swish-e.org
[mailto:users-bounces@lists.swish-e.org] On Behalf Of David Hane
Sent: Thursday, June 19, 2008 12:01 PM
To: Swish-e Users Discussion List
Subject: [swish-e] relative path problem

I have just upgraded my server to a new machine and installed the latest
swish-e. This is a default install along with the API as I use a lot of
custom application spidering.

When I run this command:

/usr/local/bin/swish-e -c /www/cgi-bin/swish/site_search/swish.conf

I get a properly built index that is searchable but when search.cgi
builds the html page it includes it's relative path in the links to the
hits.

As an example this link:
http://wheat.pw.usda.gov/ggpages%2FDEM%2FBarleyNewsletter%2F45%
2FInformation.html

is being written as:

http://wheat.pw.usda.gov/cgi-bin/swish/site_search/ggpages%2FDEM%
2FBarleyNewsletter%2F45%2FInformation.html

notice the cgi-bin/swish-site_search is being put into the url. I've
tried "ReplaceRules" and its various functions but this seems to be
added during the page draw.

My conf file for this index is:

********************
IndexDir /www/htdocs/GG2 /www/htdocs/ggpages
#SwishProgParameters default http://wheat.pw.usda.gov/GG2/index.shtml
    IndexOnly .html .htm .txt
    DefaultContents HTML*
    StoreDescription HTML* <body> 200000
    MetaNames swishdocpath swishtitle
    ParserWarnLevel 0
   FileRules dirname contains /Temp/
        FileRules dirname contains /forms/
        FileRules dirname contains /Visits/
        FileRules dirname contains /minutes/
        FileRules dirname contains /topics/
        FileRules dirname contains /survey/
        FileRules dirname contains /runsed/
        FileRules dirname contains /liaison/
        FileRules dirname contains /download/
        FileRules dirname contains /temp/
        FileRules filename contains \.htaccess$ 
ReplaceRules regex |/www/htdocs/||
ReplaceRules regex |cgi-bin||
#ReplaceRules replace /www/htdocs /
#ReplaceRules replace cgi-bin/swish/site_search/ /
        IndexFile /www/cgi-bin/swish/site_search/index.swish-e
#    HTMLLinksMetaName Refresh    
********************

I've tried searching the list and can't find anything and it's been so
long since I've had to touch swish-e that I'm a little rusty.

Thanks for any help,

Dave Hane

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users

***Email Disclaimer***

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager (postmaster@fghi.com). This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Fairmont General Hospital Inc
1325 Locust Ave
Fairmont, WV 26554

***End Disclaimer***

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu Jun 19 14:02:35 2008