How can I rewrite file extension, so when file have extension html, Apache thinks that is php extension?
I need it because I have to install some PHP application, which contains HTML files with PHP code in it…
Tryed with .htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^(.*).html$ $1.php [R=301]
… but no luck.
Thank you in advance!
Try this:
in your .htaccess