![]() |
| CF8 Absolute Paths VS. Relative Paths |
|
aerojonny
|
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
|
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 |
||||||||||||
|
|
|||||||||||||
| CF8 Absolute Paths VS. Relative Paths |
|
||
|


