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!
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!