Solved

.htm files being executed by coldfusion - large changeover

Posted on 2004-08-09
7
210 Views
Last Modified: 2013-12-24
We have quite a large static site, lots of .htm files etc. LOTS! :)

We want to bring it over to coldfusion and wondering the best approach method.. is there something we can change to allow .htm files to be executed like .cfm files? is this generally recommended? does someone have epxerience they can share with me in this area...

mike.
0
Comment
Question by:dynabytes
7 Comments
 
LVL 21

Expert Comment

by:pinaldave
ID: 11759875
1) if you want to run htm files in coldfusion server. ---- they will run fine. no confusion, no problem, it will run fine , it has no negative effects.
2) you want to execute html files, as you know there will be no dynamic event so whatever is in html file if they are in proper format they will do as expected and no effect on server or output.
3) there is wonderful Q. can we run html file as coldfusion custum tags or tags... YES ! very good answer by our expert substand http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_20646901.html

Let me know if you want to know something more.
Regards,
---Pinal
0
 
LVL 12

Accepted Solution

by:
jyokum earned 134 total points
ID: 11760148
there are a few downsides to doing this. One is that the CF server has to process each page regardless if it has CF code or not. If you have 5000 .htm files on your server and only 50 of them actually have CF code in them, the other 4950 will needlessly be sent to CF for processing. It just extra processing that doesn't need to occur. Also, if the CF server goes down... not even your .htm pages will work.
0
 
LVL 11

Assisted Solution

by:hart
hart earned 133 total points
ID: 11760762
if you have static files then why turn it into cf....

But what u could try to do is try to make your static site dynamic using coldfusion..
That is by storing details in database and then giving an admin module to edit it...

and so on...
what i mean is a content management tool....
but it takes time to build these kind of tools...

but later on maintenance would be easy...

but if all this is tooo much for u then better stick to the htm files....

Regards
Hart
0
 
LVL 35

Assisted Solution

by:mrichmon
mrichmon earned 133 total points
ID: 11763889
As has been mentioned above - YES you can have htm files run as cfm files.

However, I disagree with pinaldave that "there are no negative effects"

Instead I think jyokum has given a better explanation of some of the negative effects.


As to your question "Is it generally recommeneded?  The answer is No.

It is not a problem to do so, but is not recommended either as you can experience performance loss and the above mentioned other issues.

If you ask "Is it recommended in my case" the answer would be it depends.  If every single page is going to have dynamic content then it may be better to process htm pages as cfm pages just so you don't have to change the extention.

In general if you are looking at moving to cold fusion you need to evaluate your site.  Is there only a subsection that needs to be dynamic?  Is it the whole site?

A final thing to look at is there are utilities out there that can rename file extensions for you.  This may be a better solution (but you would also have to do a find and replace within the content of links to update htm to cfm.)
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11764055
hello mrichmon,
You are correct. thanks for correcting me.
---Pinal
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IIS url rewrite rule for web application 3 56
javascript to html map 8 78
site launch date and last modified date 3 91
move expression web site to a new server 12 29
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now