Mosh Teitelbaum wrote: > Ian: > > You could append a URL variable to the redirect URL that indicates the URL > the redirect came from. In other words, something like: > > <CFLOCATION URL="newUrl.cfm?oldUrl=oldUrl.cfm" STATUSCODE="301">
I thought of that idea but I have not got it to work yet. OK, I just tried your code and it works fine! I didn't know the <cflocation....> tag had been updated to allow one to send an HTTP Status other then 302 temporary relocation. I'm curious, does one have to have a file name for get variables to work correctly? <CFLOCATION URL="http://newDomain/newUrl.cfm?rd=oldUrl.cfm" STATUSCODE="301"> works fine BUT <CFLOCATION URL="http://newDomain/?oldUrl=oldUrl.cfm" STATUSCODE="301"> does not. Is there a standard reason for this? Is just for the 301 redirect. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:322203 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4