How to make PHP work with .html extension

If you want to run PHP with the .html extension, write the following in your .htaccess file.

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

Please note that the detailed description method of .htaccess is not supported.
Please refer to our support policy for details on what is supported.

Was this article helpful?
2 out of 3 found this helpful