My problem is actually for IIS7 Rewrite but I figure if there is a mod-rewrite solution for apache, then I can learn to adapt it myself.
So - I will ask if this is possible in Apache using a htaccess file
RewriteEngine on
RewriteRule ^(.*)$ $1.php
Quite simply, this should allow you to hide the PHP extension in the filename.
(ie: www.domain.com/myfile will actually load www.domain.com/myfile.php)
But I need something a little different. Is there any way to have it search for multiple extensions (in a given list) and return the first one found? (.htm, .html, .php)
Eg: Look for “myfile.htm”, if that doesn’t exist check for “myfile.html” if that doesn’t exist check for “myfile.php”, and if none of those exist it would simply return a 404.
I KNOW - Apache has “MultiViews” for this. But like I said at the beginning of the post, I am actually fishing for a solution I can adapt to the IIS7 Rewrite module. IIS does not have MultiViews.