At 09:07 PM 11/11/02 -0600, you wrote:
>>>>
Our site has been moved and some people have old Bookmarks so I set up a custom 404 page in IIS. It works with htm files but not for cfm files. Is there something I need to do in the Application.cfm file?


Here's a little bit of info on some nifty 404 tricks in ColdFusion, but I don't think this is what you are looking for:

http://www.biztool.com/magazines/cf_devop/archives/0201/morgan/

Here's a better answer:

How do I configure a custom page not found (404) error message for my CFM pages?

The "page not found" error message for .CFM files is configured differently than your site's default error message.

This is done through the use of the CFERROR tag within your application.cfm file.

And . . . as of ColdFusion 4.5:

Site-wide exception-handling templates

The ColdFusion Administrator's server settings page allows the site administrator to specify a default exception-handling template handler, and a "missing base template" handler. The default exception-handling template acts as if it were a <CFERROR TYPE="EXCEPTION" EXCEPTION="ANY"> tag prepended to every request's Application.cfm.
Specifying exception-handling templates for missing templates

The site-wide missing template handler is only activated if the requested template cannot be found. If the requested template attempts to access a missing template, via <CFINCLUDE> or other means, the CFML language processor will generate a TYPE="MISSINGINCLUDE" exception. This exception can be handled on an application-wide basis by inserting this tag into the Application.cfm file:
<CFERROR TYPE="EXCEPTION" EXCEPTION="MISSINGINCLUDE" TEMPLATE=template>

Future ColdFusion 4.5 checks for a site-wide missing template handler and make it the default MISSINGINCLUDE exception-handling template.

Hope this helps a bit!



Bradley Miller, Owner/Programmer/Designer
AccessZone Design - www.accesszonedesign.com
Blue Springs, Missouri
Phone: 816-228-3814 Fax: 775-254-6162
Toll-free: 888-872-4420 ICQ: 48555780

______________________________________________________________________ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives........ http://www.mail-archive.com/[email protected] Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe.................... mailto:[EMAIL PROTECTED] To Unsubscribe................ mailto:[EMAIL PROTECTED]

Reply via email to