How to use custom file extension

04/15/2012 12:12 Angellinho#1
To add a custom file extension, it’s just a matter of telling the server what file type (or Mime Type, as we’ll learn later) is associated with your new extension.

Open your .htaccess file.
General form syntax:
Code:
AddType <Mime Type> <Custom Extension 1> <Custom Extension 2> <Custom Extension 3>
Mine Type is that specific name used to tell the browser how to handle the custom extension. This time Mine Type will be used for a PHP file which is: "application/x-httpd-php".

Add the following line on your .htaccess.
Code:
AddType application/x-httpd-php epvp php
For HTML files for example: text/html.

Enjoy your new extension.