Forum Moderators: phranque
I am trying to enable PHP in .html files with the following directive in my .htaccess:
AddType application/x-httpd-php4 .html .php
But when I change from .php to .html on a test page I have prepared, the php in said page stops working.
I have contacted my host and she has said that AllowOverride All and Options All is set, and so I should be allowed to make this change in my .htaccess. She has also confirmied that the directive she uses in httpd.conf is application/x-httpd-php4, not application/x-httpd-php.
Is there anything else that is required for this kind of override to be allowed in .htaccess?
Could it be that AddType application/x-httpd-php4 is the correct directive to use, but that my host is missing some configuration directive beyond AllowOverride All and Options All?
You might want to check the MIME-type in the server response header; Non-IE browsers need the MIME-type to be correct. Try the Server Header [webmasterworld.com] checker tool to examine the response header for your page request.
This may or may not be helpful, but if the MIME-type is wrong, that may provide a clue to someone who's seen this problem before [google.com] and can help.
Jim