So i'm writing a web application in Golang. The html references a css
file like so: <link href="/css/index.css"...
, but the css
file is never found!.
Here is the bummer though, i have a couple of css
files and they are all in the same folder, and they all work!.
If i create another css
file and name it index2.css
and copy the contents of index.css
into index2.css
, this works perfectly, but for some reason, the name index.css
does not work!
Also, when i go to the link http://localhost:8080/css/
this list all my css
files. If i click on any of them, it opens up perfectly except index.css
; i get a 404 not found.
This is really strange, any idea what could be the problem?
All files in css folder:
index.css not found:
<head>
<title>Title</title>
<link href="/css/index2.css" rel="stylesheet" type="text/css" media="screen"/>
<link rel="icon" type="image/png" href="/images/img.png"/>
<script src="/scripts/jquery.min.js"></script>
<script src="/scripts/scroll.js"></script>
</head>
When i like to <link href="/css/index2.css" rel="stylesheet"...
i can see the css style on my page. When i link to <link href="/css/index.css" rel="stylesheet"...
i can't.
index.css exists in my folder:
EDIT
It works now. I think it was a permission issue. I deleted the old index.css
and created a new one and it works now. Thanks for the help.