REFERRER isn't just for search engines. It's whatever page they were last on.
-----Original Message----- From: David Torres [mailto:djt...@yahoo.com] Sent: Wednesday, September 23, 2009 1:30 PM To: cf-talk Subject: Re: Getting URL from URL address bar! Thank you guys for the prompt reply, but either application server will do the job, which I haven't tried yet, or my question has misleaded you. I have tried to use CGI variables, but the SERVER_NAME and the HTTP_HOST they both contain the www.finalsite.com when aither url is entered. I need to know a way when the user gets to index.cfm, capture the URL they typed after they hit the ENTER key. The HTTP_REFERER contains information only when the request is coming from a search engine, after that HTTP_REFERER is empty. So in summary: - User types either site www.abc.com or www.xyz.com - index.cfm has the logic to check what the user has typed to get there - redirect happens to www.finalsite.com Thanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326550 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4