Reply to topic
CF8 Absolute Paths VS. Relative Paths
aerojonny


Joined: 31 Oct 2004
Posts: 5
Location: Santa Barbara, CA
Reply with quote
Any Ideas on how to set up the Local Development Server so the Absolute Paths work? I cannot get "/Images/myImage.jpg" or "/Folder/file.cfm" to show/work on the testing server only Relative Paths seem to work.
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 548
Location: Harrisburg, PA
Reply with quote
I never use relative paths. Absolute paths are much easier to work with. If relative paths are only working, be sure that the website is definitely at the root of where it is installed.

Meaning, If your trying to access /Images/myImage.jpg it must reside at say:

D:\Websites\Example.com\www\Images\MyImage.jpg

At that point, your url would be like www.example.com/index.cfm

Where WWW is the root of your website. If only relative paths work, then your website may be at something like:

D:\Websites\Example.com\www\Website1\Images\MyImage.jpg

At that point, your url would be be like www.example.com/Website1/index.cfm

If that is the case, then the above absolute path of /images/myimage.jpg would not work because it is looking ABOVE Website1 for the images folder.

If your're confused by the above, let me know Cool
CF8 Absolute Paths VS. Relative Paths
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic