I just finished installing a LAMP stack on Ubuntu 12, and have run into an issue with Apache\'s .htaccess file. I have the rewrite and redirect mods enabled, and the .htacce
There is another htaccess alternative I use very successfully:
Options +FollowSymLinks
Options -Indexes
RewriteEngine On
RewriteRule ^purchase-jelly-babies$ /modules/products/jelly_babies.php [L]
RewriteRule ^/lets/use/an/asp/extension.asp$ /modules/test/asp_example.php [L]
This method not only solves your PHP extension issue but also allows you to keep your files organized no matter what those SEO idiots tell you what the URL should be.