Server CGI Support for search
This search gateway will perform simple searching capabilities on your website. This page will explain how to get the simple search program working on your website.
How do I install this script for use on my Website?
You will need to install this script from your console, located at http://yourdomain.xxx/console
What must I do after I have installed the script?
You will need to make some minor changes to the search.cgi script in your /cgi-bin/search directory.
$baseurl is exactly what it sounds like, the base url you want to perform the search on. This should be set to your domain name.
$baseurl = 'http://YOURDOMAIN.com';
@files is an array containing the directories and or files you wish to search, for instance if you would like to search a directory called Megaton in your htdocs directory it would look like the example below.
@files = ('');
$title should be your domain name
$title = "Your Domain Name";
$title_url This should be the URL address of your domain, most likely the same as the $baseurl
$title_url = 'http://YOURDOMAIN.com';
$search_url This should point back to the page you performed the search from.
$search_url = 'http://YOURDOMAIN.com/search/search.shtml'
Can I specify Which directories or files to search?
Yes you can specify which files or directories to search in the @files array variable like this:
@files = ('*.shtml','demos/links/*.shtml','demos/guest/*.shtml');
this would search for all files ending in .shtml in all directories and for all .shtml files in demos/links and demos/guest
Where do the files get installed to?
The script itself gets installed to /htdocs/cgi-bin/msasearch
The page to perform the search from gets installed into /htdocs
If you have problems setting up this program, please send email to help@megaton.net with the following info: