Skip to main content
Participant
October 2, 2012
Question

Re-directing index.cfm

  • October 2, 2012
  • 1 reply
  • 1131 views

Hi all,

My website used to contain .cfm files but we've changed all the website programming to html pages. I was wondering how I can re-direct index.cfm to index.html because the .cfm link is still live in various places around the web. Any help? Thanks in advance!

This topic has been closed for replies.

1 reply

Legend
October 3, 2012

If coldfusion is still running on the server, create an index.cfm template that simply contains the following:

<cflocation url="index.html" addtoken="no" />

If coldfusion is no longer available, then you'll have to configure your 404 error page for the site to redirect to the new index.html page.

Participant
October 3, 2012

Thanks Steve!

I customized a 404 page and that turned out to be a better work around.

Legend
October 3, 2012

Glad it helped. Just wondering, why did you go from dynamic cfm pages to static html pages? It seems like a big step backwards.