Question

Having issues with Parsing PHP in .HTML Files

Posted April 14, 2014 2.7k views
Hi All, I have an issue parsing PHP in .HTML Files. I am using an install of Vesta and the domain is running fine. The site in question has AddType application/x-httpd-php4 .htm .html and AddType application/x-httpd-php5 .htm .html in the .htaccess, which before I moved it was allowing php to run in html. I can't figure out for the life of me why its not now working? Has anybody got any ideas? Thank you Dan Williams

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer
I think you'd better write your code in .php files and use Apache Rewrite to modify the URL (like http://your_domain/a.php?b=c -> http://your_domain/a/b/c).
Submit an Answer