Relative link will be
<img src="../images/logo.png">
If you know the location relative to the server root, this may be the easiest approach for an application with a complex hierarchy of subdirectories - it will be the same of all folders.
For example, if your directory tree indicated in your question refers to the server root, then index.html and sub_folder / sub.html will use:
<img src="/images/logo.png">
If the image folder is located in the root directory of an application of type foo below the server root (for example, http://www.example.com/foo ), then index.html ( http://www.example.com/foo/index.html ), for example, sub_folder / sub.html ( http://www.example.com/foo/sub_folder/sub.html ) both use:
<img src="/foo/images/logo.png">
Bert F 07 Sep '10 at 0:50 2010-09-07 00:50
source share