Most URL "prettification" techniques on Apache servers involve either mod_rewrite, which is good in theory, but really difficult in practice, or the use of PATH because of Apache's search behaviour, but usually it is complained that there is still say page.php in the url.
Today I offer varient on the PATH variety of "prettiness" using a single directive in a .htaccess
DefaultType application/x-httpd-php
This line means that if a file has no extension, or an unknown extension, it will be interpreted as PHP. Thus if we make a file called, say content, and give it no extension, it would be run as a PHP script, and we can then use the PATH method to add in parameters and such. Granted this doesn't really add anything new to the already existing technique, other than solving the horrible .php extension problem, but it does offer a simpler and equivalent solution to the mod_rewrite method.

Comments
There are no comments for this entry at the moment.