0

Matt's search.cgi script not showing .shtm or .shtml files

Wednesday, November 7, 2007

The Matt's search.cgi script is showing only the .htm or .html files in the search result. In ord
er to show the results of .shtm and .shtml files, you need to modify the search.cgi script.

Search for the @files in the search.cgi script, it will look like:
@files = ('*.htm','*/*.htm','*/*/*.htm','*.html','*/*.html','*/*/*.html');

Modify it to following:
@files = ('*.htm','*/*.htm','*/*/*.htm','*.html','*/*.html','*/*/*.html','*.shtm','*/*.shtm','*/*/*.shtm',
'*.shtml','*/*.shtml','*/*/*.shtml');


This will fix the issue.

0 Responses to "Matt's search.cgi script not showing .shtm or .shtml files"