Skip to main content
Inspiring
May 22, 2006
Question

Using .htm extension with cf?

  • May 22, 2006
  • 3 replies
  • 413 views
I've been asked to convert a 'directory listings' site which is currently built in html and using some perl.

The client wants to keep the original urls with the 'htm' extension because he says the site is too well-established with the search engines and he wants to make sure the urls don't change so the site won't lose current ranking.

Yet, he wants dynamic capablities so he can add, edit and remove directory listings via ColdFusion forms and Access or SQL server database.

Anyone know if this is possible without making things 'extremely' complex?

Thanks.
This topic has been closed for replies.

3 replies

Participant
May 23, 2006
When IIS gets a request for a cfm page, it passess the request to Coldfusion. You can tell IIS to do the same thing with htm or html pages.
So if you add cftags to those htm pages then they will be rendered by coldfusion. The only downside is that all htm or html pages will be passed on to the CF Server, even if the do not contain any CF Code.
Inspiring
May 22, 2006
Put the coldfusion pages in an iframe or a frameset and name the frameset whatever.htm. The top frame can be 1 pixel and the rest of the page ( the coldfusion page ) set to * in the frame tag
Inspiring
May 22, 2006
Thanks for the tips!

I'll give 'em a try!

Much appreciated.

Scott
May 22, 2006
Can't be done directly, but you can add a redrection metatag to the html pages in question and point them to .cfm pages.