how to handle 404 or page not found error in coldfusion?
in coldfusion how to handle 404 error or page not found error, what will be the code to show custom error message in case any requested page is not found.
Thanks,开发者_如何学Go YugalYou have a few options:
In IIS or Apache, change the default 404 error handler to point to a cfm file of your choice.
In Application.cfc, set up the onMissingTemplate function to handle requests for .cfm files that are sent to ColdFusion before the web server checks to see if they actually exist.
Dan
精彩评论