I am using coldfusion 10 and iis 7.5 and trying to create a custom routing for my project that avoids using query string.
For example, the following URL:
www.myTestWebsite.com/subfolder1/subfolder2/
should be passing from a router.cfm file that exists in the root folder and then based on the string after the website's domain (in this case /subfolder1/subfolder2/) coldfusion will decide what to show and how.
I managed to make everything work except for one thing. If index.cfm (or .html, or any default file) does not exist in the /subfolder1/subfolder2/ path, IIS shows a 404.0 error. However, if create the folder structure and add an empty index.cfm file there, the routing works as expected, ignoring that empty index.cfm and moving on according to the logic I have implemented.
Is there a way (through CF Administrator, IIS, htaccess or any other) to avoid checking if that file exists and throwing a 404.0 and instead allowing me to handle that through my route.cfm?
I use rewriting in web.config: