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.
Showing posts with label Scripts. Show all posts
Showing posts with label Scripts. Show all posts
Matt's search.cgi script not showing .shtm or .shtml files
Wednesday, November 7, 2007
Posted in: Scripts | 0 Comments | Email This
Subscribe to:
Posts (RSS)