Godaddy: treat html file as php

I used to put this content in my .htaccess to treat .html as php file, but some how it’s no longer working in godaddy.

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

I found a solution, use the below text:

Options +ExecCGI
AddHandler x-httpd-php5-cgi .html

 

Leave a Reply

Your email address will not be published. Required fields are marked *