Parse HTML as PHP

Some people don’t like to use PHP endings for files which appear in the link of a webpage. To solve this you only have to insert a short piece of code into your htaccess file.

AddHandler application/x-httpd-php5 .html .htm

The good thing about this method is, that you can create your pages with phpcode as you’re used to do. But instead of using the php ending you simply use .html for your files.

About This Author

Grüezi! My name is Angela. I'm projectleader of the swissbased webagency Tree Stones, i love fantasybooks and you could say i'm in a unhealty realtionship with coffe from Starbucks.

Post A Reply

*