Can't remember, are you using IIS or Apache? I know that in Apache you can
define an actual file for each specific server code. So you could have a
301.cfm which gets registered in the web server. That file gets triggered
any time the server returns that error. I would assume that IIS has the same
mechanism. Maybe that would work for you?


andy

-----Original Message-----
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Tuesday, May 05, 2009 3:14 PM
To: cf-talk
Subject: Re: Detect a 301 redirect


Andy Matthews wrote:
> Well, a 301 redirect sort of means that the original file isn't there 
> any more right. So that should be triggered via your 404 handler. You 
> could intercept at that point and display message, along with the new
location.
>
>
> andy

Not quite.  We have the 301 redirects in place so no 404 errors are thrown.
When you type in an old URL your browser gets a 301, and send you on the
correct new location.  This is all good in my mind. 

But some powers that be, say "No, we must tell users they have been
redirected"  What I was hoping for, but I am getting discouraged on finding,
is a simple trigger where I can simply add a message to the page say
something like "You came from zzz which now lives at yyy, please update your
information." when such a redirect occurs.






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322212
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to