
Donna
Staff
/ Moderator

Jun 19, 2009, 11:35 AM
Post #2 of 3
(4187 views)
Shortcut
|
|
Re: [willydoit] Paths queery on server change
[In reply to]
|
Can't Post
|
|
Hi there, The difference between the two paths is that one is a server (file) path, and one is a web path. These are actually two different things. The server path is the actual location on the server. The web path is the path relative to your document root -- which is the public_html folder, and corresponds to www.yoursite.com. The filepath can go "outside" of that path. When cgi-bin directories are outside of the public_html (it's a common method of setting up CGI) the file path needs to go "below" the public_html directory. A web path can only go as far as the document root, so it can never go below the public_html. In the web path, the cgi-bin appears to be within the document root, although it's not really. This might be a little confusing, but in the long run: Yes, that's normal. :) For image paths, though, I'd actually recommend skipping the relative paths (aka, the ../../../ part). Instead, start the path with a slash (which takes you back to the document root) and enter the directories from there, which will work from any directory. So, instead of: ../../../walkers/images/filename.jpg ...try this: /walkers/images/filename.jpg This is good practice for your templates, as well. I hope this helps. :) Donna -- support@interactivetools.com
|