Configurar MAMP para las extensiones .shtml
Publicado por Iván Gajate el 5 de septiembre de 2013 en Desarrollo Web
Cómo hacer que MAMP (o WAMP para Mac) reconozca la extensión .shtml y que entienda los includes del lado del servidor:
http://jeffreybarke.net/2010/04/mamp-shtml-and-server-side-includes/
- Stop the MAMP servers.
- Open MAMP’s
httpd.conf
(located at/Applications/MAMP/conf/apache/httpd.conf
) in a plain text editor. - Find the line:
DirectoryIndex index.html index.php
and change it to:
DirectoryIndex index.shtml index.html index.php
- Uncomment the following two lines:
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml - Find the lines:
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
</Directory>and change to:
<Directory />
Options Indexes FollowSymLinks
Options +Includes
AllowOverride All
</Directory> - Restart the MAMP servers.