Monday, December 13, 2010

SuPHP - .htaccess to parse HTML as PHP

SkyHi @ Monday, December 13, 2010
In order to parse html files as php, add the following line to your .htaccess file:
AddHandler x-httpd-php .html

This is different than:
AddType application/x-httpd-php .html .htm
(Which will not work with SuPHP)

This can also be done with CPanel using the Apache Handlers link. Add the following entry:
extension: .html
handler: x-httpd-php

Thanks to Ed at LP Support for help with this!