Q8: How do I set up Server Side Includes?

Answer

To enable Server Side Includes:

  1. Name your files with .shtml extension
  2. Or add to .htaccess:
    AddType text/html .html
    AddHandler server-parsed .html

SSI syntax examples:

<!--#include virtual="/header.html"-->
<!--#exec cgi="/cgi-bin/script.pl"-->
<!--#echo var="DATE_LOCAL"-->
Note: Not all hosts enable SSI by default. Contact your hosting provider if SSI isn't working.
Previous General FAQ Next