Using PHP in .html files on MediaTemple hosting

Trying to use PHP code in .html and/or .htm files on MediaTemple? Modify your existing .htaccess file with the following:

Before:
AddHandler php5-script .php

After:
AddHandler php5-script .php .html .htm

That will allow the MediaTemple servers to consider .html and .htm files valid extensions for running PHP code.

4 Comments

Post a Comment

Your email is kept private. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>