The Basic Uses Of SSI - Server Side Includes
By Sean Burns
2003-10-14
Reader Rating:

Extensions And Hosting
Now, the original page that you have created will generally need to be saved with a .shtml extension. Generally speaking most hosting companies will set your site up so SSI only works on pages with the .shtml extension. It is possible to make it work on .htm or .html pages but for simplicity, it's best just to go with what your server has already been configured for. Upload the files to your server, look at the original page that you created in your browser and it should look the way you want. If it doesn't check that the paths to the SSI files that you have called are correct or contact your hosting company to make sure that you can use SSI (if you cant, find a new hosting company).
It is important to note that you probably can't use SSI on pages generated by a CGI script - unless the script can generate pages with a .shtml extension. You are, however, able to Include the output of a cgi script in your pages. In fact, you can Include pretty much anything on your site in your HTML pages. You may, on some servers, need to use #include exec rather than #include virtual - this depends on your server. Contact your administrator to find out.
If you found this article interesting, you may want to read these as well:
» Using SSI's To Ease Site Maintenance
» Taming the Update Monster
» The Background-Table Combo
|