Page 1 of 1

Setting html files to run as php

Posted: Tue May 25, 2004 11:08 pm
by gyardleydn
I recently created a web site hosted by 1and1.com I created a .htaccess as seen below but his did not work.

Code: Select all

AddType application/x-httpd-php .html

This appears to be an unkown mime type. Does any body know alternatives I could try?

Posted: Wed May 26, 2004 3:27 am
by maqmus
This is the right code.
Have you tried to change the extension to .php? This will rule out if the problem is with the PHP code itself.

I've searched for another option but never found it.

Posted: Wed May 26, 2004 4:17 pm
by gyardleydn
I received the correct mime type from a user-to-user support forum at 1and1. http://s88567960.onlinehome.us/forums/index.php

Code: Select all

AddType x-mapp-php4 .html