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

Coldfusion Mapping

Guest
Jun 25, 2008 Jun 25, 2008
I am using the Coldfusion server developer edition. My sites are hosted on shared servers at (Godaddy). I love using cfincludes and have learned that anything inside them must use Site Root relative links or they will be broken when called from files in different folders.
Referring to an image as /images/photo.jpg works fine on my webhost, but it's broken on my development server.
My local site structure is:
C:\CFusionMX7\wwwroot\wec
C:\CFusionMX7\wwwroot\geeks
C:\CFusionMX7\wwwroot\law
Where 'WEC' and 'geeks' and 'law' are all different sites I've made.
On my development server, /images/photo.jpg will be looking for
C:\CFusionMX7\wwwroot\images\photo.jpg when I need it to look for
C:\CFusionMX7\wwwroot\geeks\images\photo.jpg.

So ... how do I get a mapping for / that means C:\CFusionMX7\wwwroot\geeks\ when I'm working on the geeks website and C:\CFusionMX7\wwwroot\wec\ when I'm working on the wec website?

I even tried going into the coldfusion server and making a mapping for
Logical path: /
Directory path: C:\CFusionMX7\wwwroot\geeks

I know I would have to change that each time I change the site I'm working on. I could even live with that if it worked ... but it doesn't.

THANKS!
335
Translate
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 ,
Jun 26, 2008 Jun 26, 2008
LATEST
Hi,

You can try the CF mapping from the administartor and map the directories.

Regards
UKB
Translate
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