Question
Error.Cfm page
Problem: I would like to create a custom error page that
fires up only when a template (a coldfusion page) is not found.
Like: http://www.mywebsite.ca/somepage.cfm in this example somepage.cfm does not exist and I want to show a custom error page.
I used cferror tag and put it in application.cfm which is in webroot. NotFound.htm is in the same folder
<cferror type="Request" template="/NotFound.htm">
No matter how I change the values of type,exception, I can not make it to work.
I appreciate your advice.
Note: I am not able to specify a “template not found handler” in “ColdFusion server” since we don’t host our web site.
Thanks
Mehran
Like: http://www.mywebsite.ca/somepage.cfm in this example somepage.cfm does not exist and I want to show a custom error page.
I used cferror tag and put it in application.cfm which is in webroot. NotFound.htm is in the same folder
<cferror type="Request" template="/NotFound.htm">
No matter how I change the values of type,exception, I can not make it to work.
I appreciate your advice.
Note: I am not able to specify a “template not found handler” in “ColdFusion server” since we don’t host our web site.
Thanks
Mehran