I tried the following, but it's not working:

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

Any other solutions?

you don't need the "RemoveHandler" stuff. all you need to do is put:

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

i personally tested this and it works on my own server.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.