It is possible to disguise one file extension for another one. For example, let's say you want HTML files to act and be executed as PHP files, then you just need to add the following line to your .htaccess file:
AddType application/x-httpd-php .html
All HTML files will be executable as PHP: you can embed PHP code in the file. Or, you can limit to one file:
In this case, only the index.html file will be executable as PHP.
Last Revised: 2015-08-26