Server Side Includes


Our server supports server side includes. This includes directives such as

<!--#include virtual="/filename">
that is used to include another document within an HTML document. For performance reasons, our HTTP servers are configured to recognize server side includes only in documents named with the .shtml suffix. That is, if you decide to use the include directive as illustrated earlier, the name of your document must end with .shtml (and not .html or .htm).

If you have an .htaccess file in your directory make sure it includes the following options:

Options All

Here is an example for using the exec cgi directive in a Server Side Included document.

Source for http://sharedhosting.net/support/ssi/example.shtml:

<!--#exec cgi="test.cgi" -->
And, source for http://sharedhosting.net/support/ssi/test.cgi:
#!/bin/sh

echo Content-type: text/plain
echo

echo This is an output from test.cgi

Please note that for SSI to work your public_html directory must be world readable by executing the following command in your home directory:

chmod a+rx public_html