Solved

.htm files being executed by coldfusion - large changeover

Posted on 2004-08-09
7
209 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

863 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

24 Experts available now in Live!

Get 1:1 Help Now