Setting html files to run as php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gyardleydn
Forum Commoner
Posts: 27
Joined: Tue Dec 03, 2002 8:27 am

Setting html files to run as php

Post 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?
User avatar
maqmus
Forum Commoner
Posts: 30
Joined: Mon Mar 08, 2004 1:10 pm

Post 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.
User avatar
gyardleydn
Forum Commoner
Posts: 27
Joined: Tue Dec 03, 2002 8:27 am

Post 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
Post Reply