Add PHP code into .html files

To process files with a .htm or .html file extension as PHP files you must add the following line to the file.htaccess (if this file does not exist, create it on the site ROOT).

AddType application/x-httpd-php .html .htm

Leave a Comment

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