• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Using .htm extension with cf?

Explorer ,
May 22, 2006 May 22, 2006

Copy link to clipboard

Copied

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.
TOPICS
Advanced techniques

Views

315

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 22, 2006 May 22, 2006

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 22, 2006 May 22, 2006

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 22, 2006 May 22, 2006

Copy link to clipboard

Copied

Thanks for the tips!

I'll give 'em a try!

Much appreciated.

Scott

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 23, 2006 May 23, 2006

Copy link to clipboard

Copied

LATEST
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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation