Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently inherited a website running coldfusion. Sometime in the last year, all the .htm files were renamed to .cfm. Problem is that some external sites were already linking to the .htm versions, and now those links are broken.

I'm trying to find a way to redirect the user to the .cfm file if a .htm file is requested but not found (and of course, it's CF counterpart is present). I'm new to IIS and just don't know where to look.

share|improve this question
up vote 1 down vote accepted

If you are using IIS7 you can create a rewrite rule that will redirect the requests from .htm to .cfm Alternatively you could set the error template to a 404.cfm that will check if the equivalent file in .cfm exists and then redirect to the appropriate file or publish the standard 404.

share|improve this answer
The 404 CF file sounds like the better way to go. Thanks! – Scott Everett Oct 13 '12 at 19:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.