Solved

.htm files being executed by coldfusion - large changeover

Posted on 2004-08-09
7
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
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…

726 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