Parse .extension as .php

So, one of my friends asked me a moment ago whether it was possible to have a page named “rawr.james” and have it parse in the same way as “rawr.php”.  Quick searching shows that it’s possible through one simple line of .htaccess:

AddType application/x-httpd-php .james

Of course, you can change the “.james” to whatever extension you want. Just save the file as .htaccess and upload to your server.



Comments are closed.