Entries Tagged as 'HTTP Status Codes'

Writing HTTP Status Codes with Cold Fusion

HTTP Status Codes No Comments »

I prefer to use ModRewrite to let visiting spiders know that a page has “301 Moved Permanently” or is  410 Gone”.  ModRewrite is native on Apache servers, and my favorite implementation on Windows is the Micronovae IIS Mod-Rewrite product.  Still, you can write a Cold Fusion script can do this at the page level in a pinch.  I don’t use it that often so the scrapbook-that-is-my-blog is a good place to jot it down.

<cfheader 
	statuscode="301" 
	statustext="Moved permanently"
	/> 

<cfheader 
	name="Location" 
	value="http://gotothenewpage"
	/>

That’s it.  Pretty easy, eh?

Powered by Mango Blog. Initial Template Design and Icons by N.Design Studio, modified by Michael Cummins.
RSS Feeds