Handling File Types
Enable PHP to be parsed in HTML
If you want to include PHP code in your HTML file and you don’t want to rename the file type from .html
or .htm
to .php
, the below allows your HTML file to parse your PHP code correctly.
AddHandler application/x-httpd-php .html .htm