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

CF in .html pages

New Here ,
Sep 18, 2006 Sep 18, 2006

Copy link to clipboard

Copied

Is it possible to run cold fusion code in .html pages? I am days from going live on a big project and the client is suddenly freaking out over the fact that her urls will not be ".html"
Thanks
TOPICS
Advanced techniques

Views

340

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
LEGEND ,
Sep 18, 2006 Sep 18, 2006

Copy link to clipboard

Copied

No it is not possible.

But it is possible to have ColdFusion run html pages.

Sorry the headache is making me a bit of a smart aleck this morning.

To do this you will need control of your server. This is not something
many Hosting companies will do on a shared box. But you can go into the
IIS manager (I don't know the Apache equivalent, but I'm sure it is
there) and associate the .htm and|or .html extension to the ColdFusion
process. Then the webserver will and all such pages to ColdFusion which
will process them just as it does .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
Engaged ,
Sep 18, 2006 Sep 18, 2006

Copy link to clipboard

Copied

You can rewrite them using either ISAPI rewrite or Mod_rewrite, it is prety simple. It depends whether you are on a shared host or not!

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 ,
Sep 19, 2006 Sep 19, 2006

Copy link to clipboard

Copied

It is shared hosting on Crystal Tech.

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
Guest
Sep 20, 2006 Sep 20, 2006

Copy link to clipboard

Copied

LATEST
If your webserver gives you the capability to change it executable path (example: .html files run through xxxx.dll) and just have .html files use the coldfusion dll, then theoredically it should work.

I admit it could be a drastic change since you are working with shared hosting, but nevertheless it is an idea.

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