3
I’m with an MVC project.
When executed in localhost
as fonts
normal, but when publishing to the server they give error.
CSS
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.0.1');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.1') format('embedded-opentype'),
url('../fonts/fontawesome-webfont.woff') format('woff'),
url('../fonts/fontawesome-webfont.ttf') format('truetype'),
url('../fonts/fontawesome-webfont.svg?v=4.0.1#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
Error
Failed to load Resource: the server responded with a status of 404 (Not Found) http://areacursos.net/Content/fonts/fontawesome-webfont.woff
Failed to load Resource: the server responded with a status of 404 (Not Found) http://areacursos.net/Content/fonts/fontawesome-webfont.ttf
File tree:
Web/Content/css
- font-awesome.min.css
Web/Content/fonts
- FontAwesome.otf
- fontawesome-webfont.svg
- fontawesome-webfont.woff
- glyphicons-halflings-regular.svg
- glyphicons-halflings-regular.woff
Web/Views/Shared
- _Layout.cshtml
Web/Views/Home
- index.cshtml
It happens when browser? I’m having a similar problem, but only in Firefox, and I’m also quite interested in a solution... (in my case I use Bootstrap, but the problematic font is the same)
– mgibsonbr
@mgibsonbr I tested on IE and Chrome and neither of the two was!
– Diego Zanardo
How’s your directory tree? Post where are your htmls and your Resources (css,js,images,..)
– LeoCBS
@Leocbs, ready to go
– Diego Zanardo
This web folder is public_html/www?
– Lucas
Yes... it would be www
– Diego Zanardo