You can use #HTTP_REFERER#

============================================
Bryan F. Hogan
Director of Internet Development
Macromedia Certified ColdFusion MX Developer
Digital Bay Media, Inc.
1-877-72DIGITAL
============================================

-----Original Message-----
From: Bob Haroche [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 1:57 PM
To: CF-Talk
Subject: CGI Variable for (Non-existent) Page Requested?


I'm trying to automate page re-directions/mappings in my custom 404 page.
What I want to do is include code in the 404 page that detects the original
page requested by the browser (which obviously won't exist) and then
automatically send the user to a new page as a substitute.

With apache server, I was able to detect the original page requested via the
REDIRECT_URL variable. Now that the site is (share) hosted on an IIS server,
that variable is no longer available to me. In CF (or IIS) is there some way
to detect what page was requested by the user agent?

I've tried cgi.path_info, cgi.script_name, cgi.request_uri but all of those
simply tell me that the page requested is the 404 page itself. What I need
to know is what non-existent page was requested before the user reached the
404 page. Make sense?

Thanks.

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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to