I am working on a website and I am having an issue with relative links back to the index.html and to the CSS sheet. I am currently visiting a file, named blog.html which is inside the sites directory. The index.html is in the root folder. The CSS is called main.css and is located in a special css folder, on root level.
I have used this code for the navigation:
<nav>
<ul>
<li><a href="../index.html">HOME</a></li>
<li class="selected"><a href="blog.html">BLOG</a></li>
<li><a href="">INVENTIONS</a></li>
<li><a href="">RECIPES</a></li>
<li><a href="">LOCATIONS</a></li>
</ul>
</nav>
However, after saving and refreshing the page, it will still just link to /sites/index.php instead of just index.php.
I have tried using just a / as well as ./ it won't work. The CSS sheet is the same error. It seems to be looking in sites/css/ for main.css instead of /css/main.css.
I am already using relative links and I know that ../index.html should link back to (root)/index.html from sites/blog.html. It is not working though. The link remains inside the sites/ directory and does not move back up to root.
Any idea why this is happening? Never had this issue before.