Redirecting with ColdFusion

//Redirecting with ColdFusion

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="http://www.example.com">

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

<cflocation  url="http://www.example.com/page.cfm">

Replace example.com 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:00 February 17th, 2010|ColdFusion|0 Comments

About the Author:

Leave A Comment