There are a number of ways. The FIRST thing you want to do if you have
access is go CF administrator and then go to Settings.
Then scroll down and fill in the Exact Path to your Missing Template Handler
(for 404)
and your site-wide error handler (for errors).

Then you create the 2 pages you just pointed to and you have custom pages.
Now, there are a few things to keep in mind. 1. For 404 errors it will only
catch
..CFM 404 errors not .HTM so if you use IIS you need to edit their 404 page
to 
point to your new page.

Now what I do since I have my own server and MANY sites on it, is I create
the custom 404 and then on that 404 page I look at the SERVER_NAME which
normally contains the DOMAIN NAME, depending on the domain name found, 
I use <CFLOCATION> to then send them to a specific 404 page for that site.

Just some ideas.
Kelly

-----Original Message-----
From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 10:51 AM
To: CF-Talk
Subject: Custom error pages


I need to create 2 custom error pages for an application. One is for 404
errors (page not found), and the other is for any other server errors. Armed
with CFERROR and CFTRY/CFCATCH, does anyone have suggestions on how to
achieve this?

Thanks
Steve

Development Manager
Vardus Internet Solutions (SA)

Tel: (+27) 21 670 9880
Fax: (+27) 21 674 4549

Email: [EMAIL PROTECTED]
Website: www.vardus.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to