I'm trying to test executing php code within my index.html. To test this I'm using:
<?php
phpinfo();
?>
If I change the file to .php it works fine, but I want it to execute as .html . I set up a .htaccess to do this but it's not working. This is my .htaccess:
<Files index.html>
AddType application/x-httpd-php5 .html
</Files>
Both index.html and .htaccess are located in var/www/html. Why is the .html file not processing as .php when it has php code?