CUSTOM EXTENSION

 

Ever wondered how Google makes some of their pages have the extension .g? This is a fairly easy procedure really, and htaccess does a great deal in helping us accomplish this. First decide what you want the new extension to be, for our purposes we will use the extension of .next (simply because it makes sense). Now we want all files with the .next extension to be treated as PHP files, so we will add the following line to our .htaccess file:

AddHandler application/x-httpd-php .next

This little command will tell your server to treat each file with the extension of .next as if it were a PHP file. There are tons of handlers you can use for your custom extension, and listing them all is well beyond the scope of this tutorial, however here are just a few common ones:

 

Hosted by www.Geocities.ws

1