Parse .html as PHP
How can I configure Apache to treat .html files as PHP under suPHP?
You need to remove any previous entries for handling .html files as PHP and insert the following in your .htaccess file:
PHP 5.3: AddHandler x-httpd-php53 .html .htm
PHP 5.2: AddHandler application/x-httpd-php52 .php
The newest cPanel servers actually require the following instead:
AddHandler application/x-httpd-php52 .html .htm
AddHandler application/x-httpd-php53 .html .htm
AddType application/x-httpd-php52 .html .htm
AddType application/x-httpd-php53 .html .htm
Please try this if the first type does not work for your files.
Want to read this in another language?