开发者

how to handle 404 or page not found error in coldfusion?

开发者 https://www.devze.com 2023-02-11 15:05 出处:网络
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.

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

精彩评论

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