Make all files php


In a previous host, I edited the .htaccess to read all html files as php files. So I have php code in a file called ‘name.html’, and the php part is executed normally.

When I transferred it all to dreamhost, this stopped working. I even created and uploaded a new .htaccess file.

The .htaccess code I’m using is: AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html


AddHandler php-cgi .html