>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 > >Is there any easy way to detect that a page is being served because of a >301 redirect to it? > >We have reorganized some of our site so we have put 301 redirects in place >for old URLs that people may use. But the powers that be do not want a >completely silent redirect for users who may be using old bookmarks, >published links, etc. They would like a message displayed asking them to >update their sources. > >I thought a CGI variable might give me a hint, but I have not found the >correct one if it exists.
The GetHttpRequestData is designed to get header information and the numeric code returned. There is an example of it working in the CFMX 7 livedocs site: http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000482.htm If that does not meet your needs. The other way I know of getting that type of info would be through a Servlet. If you either feel adventurous or are pretty decent with Java you could code a custom tag in Java. If I remember correctly, the custom tag uses both the http request and response methods, between the two you should be able to get the custom tag to return whatever code you are looking for. --JW ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:322204 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

