1 person found this helpful
Take this site for example: www.christmaseverymonth.com
on this site there are links that point to another page such as Men's Cologne. This will be written out in the html like: <a href="/men-s-cologne.html">Men's Cologne</a>
Hope this sheds some insight on how Dreamweaver is working.
This code does not work on my browser with my site. When I save the page and test it out it cannot find the page using ie8. I want to test the pages before I upload them. You are correct in saying that it works when uploaded. Why doesn't it work when opened from my C drive?
I've never seen a slash at the left end of a "local link" in my root folder. (see attached)
For subfoldered items there is a "../" for each level back to my root folder, but I've never seen a "/" byt itself generated by DW and I honestly think this is causing your problems.
From what I can gather from your screenshots, Dreamweaver is inserting your links correctly.
A slash at the front of a link means site root.
<a href="/test.html"> looks for a file called test.html in the root level of the site. If that file does not exist at root level then the link is broken.
If test.html is one folder down then, if the / is included at the front of a link, then the link will not work unless the folder name is included in the link
If, as you say, the file to which you want to link is in the same folder then you need a Relative to Document link.
Thus in the Select File dialog box shown in SelectFileatSameLevel.jpg, change Relative to Site Root to read Relative to Document.
Your link will be inserted as <a href="test.html">
Does your link now work locally and remotely?
If not, are the files to be linked, which are at the same level, in the same directory or different directories?
Thank you so much for answering this question. You cannot believe the amount of time I spent talking to tech support in India trying to get the answer you provided.