In the properties window for your website, choose Home Directory, then Configuration, choose the .cfm application mapping and click on Edit, check the "Check that file exists" check box. This will send requests for missing cfm pages directly to your 404 page, rather than sending them to CF to handle. Then back on the properties page choose Custom Errors and put a URL in for your 404 error.
Dan -----Original Message----- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 11:58 AM To: CF-Talk Subject: RE: CGI Variable for (Non-existent) Page Requested? How do you setup IIS like this? Very cool. ============================================ Bryan F. Hogan Director of Internet Development Macromedia Certified ColdFusion MX Developer Digital Bay Media, Inc. 1-877-72DIGITAL ============================================ -----Original Message----- From: Dan Haley [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 2:43 PM To: CF-Talk Subject: RE: CGI Variable for (Non-existent) Page Requested? Here's what we use in our page ... our missing template handler is under the web root, and IIS is set up to "check that file exists" for CFM requests, and the 404 error page in IIS is pointed to the CF missing template handler . <!--- IIS redirects to 404 error page ---> <cfif cgi.script_name eq "/errors/error_missing.cfm"> <!--- IIS passes the requested URL in the query string ---> <cfset variables.script = listlast(cgi.query_string, ";")> ... further processing <!--- CF redirects to missing template handler ---> <cfelse> <cfset variables.script = cgi.script_name> ... further processing </cfif> Dan -----Original Message----- From: Bob Haroche [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 11:27 AM To: CF-Talk Subject: Re: CGI Variable for (Non-existent) Page Requested? Bryan, Thanks, but #HTTP_REFERER# works only to tell me what page the visitor is coming from. I need to know what (non-existent) page they're *requesting*, even in the situation where they're not coming from any other page but using a bookmark or typing a bad URL into the browser address bar. Any other ideas? Regards, Bob Haroche O n P o i n t S o l u t i o n s www.OnPointSolutions.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.

