> Question: is there a way to do a 301 / 302 / cflocation where, on
> destination.cfm, cgi.HTTP_REFERER is NOT "start.cfm" ?
<cfif (Find("destination.cfm.", cgi.http_host) is true and Find("start.cfm.",
cgi.http_referer) is false)>
<cflocation url="GOHERE" addToken="no" statusCode="301">
</cfif>
Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100
Hauppauge NY 11788
P : 631.231.6600 Ext. 119
F : 631.434.7022
http://www.austin-williams.com
Great advertising can't be either/or. It must be &.
Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged
-----Original Message-----
From: John M Bliss [mailto:[email protected]]
Sent: Tuesday, February 08, 2011 9:57 AM
To: cf-talk
Subject: (ot) redirect and referer
I know this is more of an HTTP question than it is a CF question but...
So, there are (at least) three ways of performing a redirect:
(For each of the following, start.cfm has a href="redirect.cfm")
start.cfm -> [click link] -> redirect.cfm (with 301 / 302 / cflocation) ->
destination.cfm (where cgi.HTTP_REFERER is "start.cfm")
start.cfm -> [click link] -> redirect.cfm (with meta http-equiv="refresh"
content="0;url=destination.cfm") -> destination.cfm (where cgi.HTTP_REFERER is
NOT "start.cfm")
start.cfm -> [click link] -> redirect.cfm (with window.location =
"destination.cfm") -> destination.cfm (where cgi.HTTP_REFERER is NOT
"start.cfm")
Question: is there a way to do a 301 / 302 / cflocation where, on
destination.cfm, cgi.HTTP_REFERER is NOT "start.cfm" ?
--
John Bliss - http://about.me/jbliss
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341977
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm