Use a Redirect Script in ColdFusion

This article walks you through the process of using a 301 redirect script in ColdFusion.  The 301 redirect  is a very efficient method of webpage redirection.  More importantly, it is search engine friendly.  

In order to utilize a 301 redirect, you will need to add the following ColdFusion code to a page on your site (replacing http://domainname.com with the actual URL you would like to redirect to):

<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://domainname.com">

In most cases, you will need to insert this script on a default document such as index.cfm or default.cfm in order to redirect a fully-qualified domain name.

NOTE: This script can be inserted in your web root or a sub-directory.