RE: Custom 404 in CF.
The only way to do this is with iEP's redirection (error) handler. It allows for the use of CFM's for error handling/custom 404's.. etc. Lee Fuller Chief Technical Officer PrimeDNA Corporation -Original Message- From: Neil H. [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 17, 2001 11:37 AM To: CF-Talk Subject: Custom 404 in CF. IN a virtual hosting environment how would you use a custom 404 that is CF based? Actually even if it a .cfm and the file is not found IIS wouldn't return the 404 page but there is something else displayed. Thanks, Neil p.s. It can not be the server wide error handler since there are several different people using the Server. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Custom 404 in CF.
Neil, If you have enabled session variables, this is easy. In your application.cfm page insert this code below your cfapplication... CFERROR TYPE="Request" TEMPLATE="error.html" MAILTO="[EMAIL PROTECTED]" Then be sure to have a custom error.html page within that directory scope. It is important to note that CFSERVER will not process anything but html on the error page so you can't use a .cfm page. Tony Gruen -Original Message- From: Neil H. [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 17, 2001 11:37 AM To: CF-Talk Subject: Custom 404 in CF. IN a virtual hosting environment how would you use a custom 404 that is CF based? Actually even if it a .cfm and the file is not found IIS wouldn't return the 404 page but there is something else displayed. Thanks, Neil p.s. It can not be the server wide error handler since there are several different people using the Server. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Custom 404 in CF.
Hi, I've found CFERROR does not trap the CF 404 errors even when used in the global application.cfm. Also a couple of statements in Tony's mail aren't correct in regards to CFERROR: At 2/17/2001 12:09 PM -0800, Tony Gruen wrote: If you have enabled session variables, this is easy. You don't need to have session management enabled, or even a cfapplication tag. In your application.cfm page insert this code below your cfapplication... CFERROR TYPE="Request" TEMPLATE="error.html" MAILTO="[EMAIL PROTECTED]" Then be sure to have a custom error.html page within that directory scope. It is important to note that CFSERVER will not process anything but html on the error page so you can't use a .cfm page. That's not entirely accurate. You can have a cfm page as the error handler, there's just a very limited amount of CF functionality you can actually use in the error page. See CFERROR tag help for details. Cheers, -Max ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Custom 404 in CF.
Lee, Do you have a link to more information? Jim - Original Message - From: "Lee Fuller" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Saturday, February 17, 2001 1:01 PM Subject: RE: Custom 404 in CF. The only way to do this is with iEP's redirection (error) handler. It allows for the use of CFM's for error handling/custom 404's.. etc. Lee Fuller Chief Technical Officer PrimeDNA Corporation -Original Message- From: Neil H. [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 17, 2001 11:37 AM To: CF-Talk Subject: Custom 404 in CF. IN a virtual hosting environment how would you use a custom 404 that is CF based? Actually even if it a .cfm and the file is not found IIS wouldn't return the 404 page but there is something else displayed. Thanks, Neil p.s. It can not be the server wide error handler since there are several different people using the Server. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists