Redirect a URL with ColdFusion

ColdFusion can be used to redirect your website to another domain name or URL. The code is very simple, just follow the steps below.

1. First create a new file called index.cfm using notepad or dreamweaver. Make sure you save it as a .cfm (ColdFusion) file.

2. Place the following code in the index.cfm file.

<cflocation url="">

If you need to redirect to a certain page use the following code

<cflocation  url="">

Replace with the domain name you wish to redirect to.

3. Upload the index.cfm file to the root of your domain name. The root of your domain is the content location, the directory your domain name’s content is located in. Make sure to replace any existing index.cfm and delete any other default documents such as default.cfm or home.cfm as these will stop the redirect from working.

By |2010-02-17T22:43:28+00:00February 17th, 2010|