How to parse HTML files as PHP on an Apache web server
If you need Apache to run PHP inside .html files, it's one line in .htaccess. Here's every variant (AddHandler, AddType, PHP4 vs PHP5) so you can find the syntax that works on your host.

Someone asked me today for help with their PHP website. He was trying to parse HTML files as PHP on his Apache webserver. This is very easy to do using the .htaccess file but he just could not seem to get his files to parse using the instructions he found on Apache's website:
AddType application/x-httpd-php .html
The thing to remember with something as diverse as Apache and PHP, different hosts will have different configurations. For example, some hosts runs both PHP4 and PHP5. In this case, he was hosting the company website through HostGator. This is what had to be added to the htaccess file to get it to correctly parse the files:
AddHandler application/x-httpd-php5 .html .htm
With other hosts, you can get away with:
AddType application/x-httpd-php .html .htm
or
AddHandler application/x-httpd-php .html .htm
or
AddHandler x-httpd-php .html .htm
And still yet, some hosts require both AddHandler and AddType directives for it to work correctly:
AddType application/x-httpd-php .htm .html AddHandler x-httpd-php .htm .html
Hope this helps. Leave a comment if you have any questions.

Jason Samuel
Product leader, advisor, and international speaker with 27+ years in enterprise end-user computing, security, and cloud. Has deployed infrastructure at Fortune 500 scale across 34 countries. 1 of 3 people globally to hold Citrix CTP + VMware vExpert + VMware EUC Champion concurrently. 200+ articles, 1,000+ reader discussions.
Using your Citrix NetScaler for Microsoft IIS or Apache http server header obfuscation
If your HTTP server headers are exposing IIS or Apache version info, you're giving attackers a head start. Here's how to use NetScaler Rewrite policies to obfuscate them.
apacheHow to properly use SSL redirects without getting certificate error messages
Your SSL redirect is throwing a cert error because the cert doesn't cover the origin domain. SAN certs fix this. Here's when wildcards fall short and how to configure clean 301 redirects.
apacheHow to automatically put up a maintenance page on a NetScaler when all your websites are down
If all your backend web servers go down, you can have the NetScaler serve a maintenance page directly. Beats browser timeouts and keeps users informed.