Report this

What is the reason for this report?

Having issues with Parsing PHP in .HTML Files

Posted on April 14, 2014

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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).

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.