Posts in Category: technologies

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.