GreenNet can enable a search engine for any website hosted on the GN webserver. These instructions explain how to customise the search for your site.

First you will need a template search page like this to be placed in your website folder 
Contact support for more information on the location of your search engine. You can then customise this search page in the same way as your other web pages, to fit in with the look and feel of the rest of your site. It can be copied anywhere on your website and used on as many pages as you want.

We use a program called ht://Dig for the indexing and searching system on our linux apache server. For further details on this program and more advanced customisation please visit the ht://Dig site .

Search page

Restricted Searches

You may want to restrict your search to a particular directory on your site, for example a directory called “documents”. To do this you can edit the field called “restrict” in the template search page. This looks like this:

‹input type=“hidden” name=“restrict” value=”“›

In this example you would change it to:

‹input type=“hidden” name=“restrict” value=“documents“›

Then when you search it will only return results containing the word documents in the url.

There is also a similar field called “exclude” which allows you to exclude certain urls from your search, you use it in exactly the same way only edit the field which looks like this instead:

‹input type=“hidden” name=“exclude” value=”“›