开发者

How do you redirect in ColdFusion and control the status code (i.e. 301 instead of a 302)

This code does a redirect, but uses a 302 status code:

<cflocation url="http://stackoverflow.com" addToken="no" />

I fou开发者_如何学Pythonnd 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">

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜