I hope I can explain this clearly enough, but if you do not tell me, I will try to clarify.
I am currently developing a site using ColdFusion and have a mod_rewrite rule to make it look like the site is using PHP. Any requests for index.php are handled by index.cfm (the rule maps * .php to * .cfm).
It works great - so far so good. The problem is that I want to return a 404 status code if index.cfm (or any ColdFusion page) is requested.
If I try to block access to * .cfm files using mod_rewrite, it also returns 404 for requests to * .php.
I suggest that I may have to change the configuration of Apache and not use .htaccess
source
share