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
Fantastic. Worked like a charm! Thanks.
Great and Congrats. My only 5 cents are after copying disk image from HDD to SDD the performance was not that great. Dunno what was wrong: blocks size, fragmenting? But after restoring from Time Machine instead the speed was great.
thanks, it worked! simple and elegant way to include wordpress feed (through php) keeping my html extensions. used http://codex.wordpress.org/Integrating_WordPress_with_Your_Website method for wordpress integration. thanks again.
sorry, very useful and simple method to ‘Display WordPress content outside your blog’ is http://www.corvidworks.com/articles/wordpress-content-on-other-pages