I've used htaccess to remove extensions or redirect, such as;
RewriteRule ^([^\.]+)$ $1.html [NC,L]
RewriteRule ^(.*)/$ /$1.php [L]
I was wondering if anyone has used to it in this way:
If file extension can't be found, check for html or php file under the same name re-direct to file exith extension.
I can only find examples for redirection, file-extension removal and adding trailing slashes to the file, not to do something like my example, any ideas?