you can also try this:
- Got to IIS Management Console
- Expand your Websites
- Right-click on your website and select 'Properties'
- Select the 'Home Directory' tab
- Click the 'Configuration...' button
- On the 'Mappings' tab in the Application Configuration
pop-up, select
".cfm" under Application extensions
- Click 'Edit...' button
- Select the 'Verify that file exists' check box
this will make IIS check that requested .cfm page actually
exists on the
server, before passing the processing of the page to CF, and
if it does
not IIS will display the custom 404 page you have defined in
it for this
website.
the downside of this, iirc, is that you can't use CF
Mappings... but i
may be wrong on this one, as i do not actually use this
'Verify that
file exists' setting on any of my CF sites...
were you on CF8, you could use the onMissingTemplate() method
in
Application.cfc to display a custom 404.cfm page (or do
whatever else
you wnat to do when a page does not exist)
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/