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="">

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.

Leave a Reply

Your email address will not be published. Required fields are marked *