root folder
Posted: 02. February 2009 04:39
I have a folder for my website that is stored in the htdocs folder. When I code, I usually put in the forward slash in front of all my links.
Example:
However, the images and links don't work because there is no 'images' folder in the htdocs folder. The 'images' folder is in the htdocs/website folder. So I kind of want to make the website folder root directory. What are my options here?
Example:
- Code: Select all
<img src="/images/banner1.png" alt="" width="343" height="187" /><img src="/images/bannertxt.png" alt="" width="329" height="187" />
However, the images and links don't work because there is no 'images' folder in the htdocs folder. The 'images' folder is in the htdocs/website folder. So I kind of want to make the website folder root directory. What are my options here?