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

Posted by James Lawruk on Stack Overflow See other posts from Stack Overflow or by James Lawruk
Published on 2010-03-23T20:20:06Z Indexed on 2010/03/23 20:23 UTC
Read the original article Hit count: 423

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about coldfusion

Related posts about redirect