Answered
Can't make custom 404 error page work
Running CF Server MX 7.02
I have redone the site at q10.ca and have tons of non existant *.cfm pages. After changing the default 404 error page in IIS, no matter what I do, I cannot get rid of the default 'Error Occurred While Processing Request ' box that is the default for CF errors. I can get the 404 custom page for any non-existant '.htm. pages, but not '.cfm' pages. I have tried quite a few things:
- change settings in adminstration settings for CF server
- added code to Application.cfm:
<cferror type = "exception"
exception = "Any"
template = "404.cfm"
mailto = "replies@mparam.com">
<cffunction name="onMissingTemplate" returnType="boolean">
<cfargument type="string" name="targetPage" required=true/>
...
<cfreturn BooleanValue />
</cffunction>
- created an Application.cfc file with the same code
All I want to do is simply redirect every error for a missing page to the same page and after 3 hours I still can't seem to accomplish this simple task.
Regards, Chris
I have redone the site at q10.ca and have tons of non existant *.cfm pages. After changing the default 404 error page in IIS, no matter what I do, I cannot get rid of the default 'Error Occurred While Processing Request ' box that is the default for CF errors. I can get the 404 custom page for any non-existant '.htm. pages, but not '.cfm' pages. I have tried quite a few things:
- change settings in adminstration settings for CF server
- added code to Application.cfm:
<cferror type = "exception"
exception = "Any"
template = "404.cfm"
mailto = "replies@mparam.com">
<cffunction name="onMissingTemplate" returnType="boolean">
<cfargument type="string" name="targetPage" required=true/>
...
<cfreturn BooleanValue />
</cffunction>
- created an Application.cfc file with the same code
All I want to do is simply redirect every error for a missing page to the same page and after 3 hours I still can't seem to accomplish this simple task.
Regards, Chris
