using 404.cfm template with application.cfc
I am just getting started with application.cfc.
I am trying to improve SE ranking with better URLs. I would like to serve a page for non existent URLs.
This works:
http://domain.cfm/art-categories/van-gogh-24/index.cfm
The missing template handler catches it, and I can get the "24" (a db key) from arguments.template, to serve the proper page.
However, I am having a problem with this url:
http://domain.cfm/art-categories/van-gogh-24/
This still calls 404.cfm, but I do not have arguments.template, and cgi.SCRIPT_NAME=/404.cfm
I do not see any way to get the requested directory, /art-categories/van-gogh-24/, so that I can grab the key I need.
Any idea on what to do? How can I reference the path requested?
