I use MAMP to develop sites. I have each site in it's own folder in the htdocs folder. I manage one site that I need to use ssi directives on, because the host doesn't allow php includes.
I've un-commented these lines in httpd.conf file:
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
I added a .htaccess file in the htdocs folder with the following:
AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes
On the site index page the include works using:
<!--#include file="top-nav.shtml" -->
But it does not work on files in any sub folder. I get this error:
[an error occurred while processing this directive]
WAMP
was Windows (+apache, MySQL, PHP) andMAMP
was MacOSX, etc. Not that it likely matters for your question.