Apache htaccess and directive multiviews
Applications, CFML, Linux | (0)
Nowadays it is common to use a .htaccess file to configure access to directories and also mask URL's that point to internal URL's. Well today, we had to point a URL of http://www.mydomain.com/solution to an internal URL like http://www.mydomain.com/solution.cfm.
Actually no big deal, since the .htaccess comes to the rescue. We quickly put a .htaccess together with the simple lines of:
RewriteEngine On
RewriteRule ^([a-z]+)$ /$1.cfm
But alas, it did not work. We always got an error message saying that the URLĀ http://www.mydomain.com/solution could not be found. We thought that the .htaccess file was not working or we had a typo. We even restarted ...