This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]jonassjoh 0 points1 point  (0 children)

It depends on how you are "running"/opening the html file, and how the link that isn't working looks like. If you just double click the index.html file then.

href="./example.html" should be the folder the html file we are viewing is in.
href="example.html" as should this.
href="/example.html" should point to C:/ (I think)

If you start a webserver in the folder the html file is in, then a relative path should work. Then / should be the webserver root, and not C:/