I’m trying to have the HTML files in a certain folder get parsed as PHP files. I’m on JustHost, so I can’t change the .conf files. I’m trying to use the htaccess trick:
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
AddType application/x-httpd-php .html
But it won’t work; any time I try to visit the page, Firefox is asking to download it, like a .zip or .mov file. And if I use AddHandler instead, it just loads the page with the php code unparsed.
Is there something missing with my code? Can I even do it this way?