Contact Us

 Admin User     Feb,08 2017

Using ColdFusion Code Within .htm/.html File

If you want to use .htm and .html files in should follow below step.
you will need to edit the web.xml file located generally at C:\ColdFusion8\wwwroot\WEB-INF Modify and insert at the end of the other mappings.

<servlet-mapping id="macromedia_mapping_14">
<servlet-mapping id="macromedia_mapping_15">

Save this file and exit.

Now in IIS, setup a mapping for the site.

If you are using IIS6, go to the IIS section, find the site and then right click select Properties.
Click on the "home directory" tab, click on the configure button, under mappings,select and "edit" the .cfm record and copy the value
of "executable". Now hit Cancel button and then click Add to add the new mapping.
Opne the .htm or .html record and paste the executable value copied from the .cfm record and hit ok button.
Please refer below screen short.

Open a command prompt and navigate to: C:\Coldfusion9\runtime\bin enter this line exactly: .\wsconfig -server coldfusion -ws IIS -site 0 -coldfusion -map ".htm,.html" -v

Restart the webserver. (using iis reset from a command line prompt)
Restart Coldfusion. (from the services panel in administrative tools)