How to include PHP code in .htm/.html pages?

To be able to execute PHP code in .htm/.html pages using our Standard PHP setup, add the following line in your website’s .htaccess file:

AddHandler application/x-httpd-php74 .php .htm .html

In case you are using the Ultrafast PHP setup, then the line to be added to your .htaccess file would be:

AddHandler application/x-httpd-php .php .htm .html
Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.