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.

Reply via email to