Add Server Side Includes to your MAMP Localhost

Super simple edit the file:

pico /Applications/MAMP/conf/apache/httpd.conf

Uncomment the following:

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

Then add an .htaccess file to your root:

AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

Restart MAMP and it should work like a charm!

Leave a Reply

Your email address will not be published. Required fields are marked *