What is SSI and How to enable it?
SSI stands for server Side Includes which is a simple interpreted server-side scripting language used for the Web.The biggest advantage of SSI is to include the contents of one or more files into a web page on an intenet server. Its common usage includes addition of common piece of code throughout a site, such as a page header, a page footer and a navigation menu. Conditional navigation menus can be conditionally included using control directives.
First you can check SSI are enabled on your server or not. So create one test.html file and add the following code .
<!–#ECHO var=”DATE_LOCAL” –>
Then access the page by using the UR http://domain.com/test.html and it shows the current date to the screen
Wednesday, 23-Jun-2010 23:53:09 BST
Means SSI was enabled on your server
and If the URL shows the blank page then SSI are not enabled on your server.
If you want to enable it then you need to add the following code into the.htaccess file.
AddType text/html .htm .html .shtm .shtml .sht
AddHandler server-parsed .htm .html .shtml .sht .shtm
Save and exit
If you want to enable the SSI on the server then you need to add
same code in httpd.conf file and restart the apache service.
In order for a web server to recognize an SSI-enabled HTML file and therefore carry out these instructions, either the filename should end with a special extension, by default .shtml, .stm, .shtm, or, if the server is configured to allow this, set the execution bit of the file. It has a simple syntax <!–#directive parameter=value parameter=value –> that Windows and cPanel hostingserver both supports SSI to make task easy.
