I have the following line in .htaccess
AddType application/x-httpd-php .html .htm
And it used to work for years to treat html pages as php, however recently I noticed it is not working anymore, except only in the homepage (example.com
), and not even at the same page (example.com/index.html
)
I tried now to add the following to /etc/apache2/mods-enabled/php5.6.conf
and restarted apache, but still it didn't work. Also tried other suggestions here, but still no luck.
<FilesMatch ".+\.html$">
SetHandler application/x-httpd-php
</FilesMatch>
Any idea what could have happened? Or how to fix that?