You are here: Support > Knowledgebase > Shared Hosting FAQ > How to run PHP on htm/html filesPlease Login or Register



How to run PHP on htm/html files

The way to execute PHP on a .htm, .html (or any extension) page is to modify your .htaccess file. You just need to add this line for .html:

AddHandler application/x-httpd-php5 .html
AddType application/x-httpd-php5 .html



Was this answer helpful?

Add to Favourites
Print this Article

Powered by WHMCompleteSolution