开发者

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

Yugal


You have a few options:

  1. In IIS or Apache, change the default 404 error handler to point to a cfm file of your choice.

  2. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜