Ara Abcarians Logo

Get SSI to Work in MAMP

I recently had an issue getting Server Side Includes (SSI) to work in MAMP Pro. I followed directions on many different blogs and edited my httpd.conf file accordingly. SSI seemed to be working inside of .shtml files, but they weren’t working inside of .html files.

Here are the steps to fix this issue:

  1. Stop MAMP and open up your httpd.conf file. (/Applications/MAMP/conf/apache/ or Command+1)
  2. Find <IfModule mime_module> (mine was at line 459)
  3. Right before the closing </IfModule> tag add this:

AddType text/html .shtml AddHandler server-parsed .shtml AddType text/html .html AddOutputFilter INCLUDES .html Options +Includes

Restart MAMP and you should be good to go!