Server Side Includes are a little used feature of most webservers and have limited use but can be handy for certain needs.

Obviously this is something best handled by PHP file inclusion or something similar but that isn’t always an option.

You may, for example, have a host which doesn’t allow PHP files yet has SSI enabled.

This short article gives an example of how to include one html file inside another using simple HTML.

The two examples below show how to embed one HTML file inside the other.

<!--#include file="included.html" -->
OR
<!--#include virtual="/directory/included.html" -->

Notes:
Use “file=” when the included file is within the same directory as the page that wants it. Use “virtual=” when it isn’t.
You may need to name the file “included.shtml” as the shtml acts as a parsing command and tells the server the file has posisbly dynamic content.