[How To] Execute .html as .php
Some of you have sites that are written in .html and do not want to change the extension of every page but would like the ability to run PHP on a page that ends in .html
This can be achieved on systems that run PHP as a CGI (like ours) by adding the following directive to your .htaccess file:
Code:
AddHandler application/x-httpd-php .html
If you have a dedicated server and still run PHP as a module then your .htaccess would be like:
Code:
AddType application/x-httpd-php .html
All GlowHost shared and reseller servers use PHP CGI.