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 generic htdig search pagegeneric htdig search page.
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 .

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=”“›

Featured services

GreenNet web projects are all about planning, designing, building and hosting websites that work for you and the issues you’re working on.

Our managed Drupal hosting is for organisations who want a managed and dynamic presence on the web with easy access to expert Drupal advice and development support.

GreenNet’s POP/IMAP enabled mailboxes with unlimited online storage, access to email from anywhere using GreenNet webmail, spam and virus filtering, daily off-site backups and GreenNet Support to help you along the way.