SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. SSI is to include the contents of one or more files into a web page on a web server. For example, a web page containing a daily quotation could include the quotation by placing the following code into the file of the web page.
The syntax should be as:
This has to be given in the main file where you suppose to include or parse this SSI, ie invoking file.html(SSI) to main file which is present in the same directory.
Sometimes it wont work in server. The following simple steps are the fix for it.
First make sure mod_include.c is enabled in apache modules
Then, In accounts htaccess file
AddType text/html .html
AddHandler server-parsed .html
Restart apache 🙂 and see the changes.