This code does a redirect, but uses a 302 status code:
<cflocation url="http://stackoverflow.com" addToken="no" />
I found this on the Internet, but I think it only works in ColdFusion8. I am using ColdFusion7.
<cflocation url="http://stackoverflow.com" addToken="no" statuscode="301" />
Hoe do you control the status code in ColdFusion7?
<cfheader statuscode="301" statustext="Moved permanently"> <cfheader name="Location" value="http://stackoverflow.com">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.