My site map is like this:
Folder 'images' contains 'image1.png',
Folder 'template' contains 'header.php' and 'footer.php', and
'index.php' includes both header and footer.
Now in header.php I have a link:
<img src="images/image1.png">
When I run index.php in localhost, The above link works fine when I use it as is but with putting a forward slash at the beginning,
<img src="/images/image1.png">
it is dead!
When I googled about html/php linking I found out that putting a forward slash makes a kind of absolute path for the link, starting from the root and looking for the file. So, here I expect this to work because I have images folder in website root. Can someone please clarify this path differences for me?