FontAwesome does not work for me when I put my application on an IIS7 server.
In Firefox, the requested URL is encoded before http://l2etest.kema.intra/fonts/fontawesome-webfont.ttf%3Fv=4.0.3, and I get 404. When I change %3Fto ?, everything works fine.
The same thing happens in IE, but the request extends to the eot font.
This is what I have in CSS (same as on the FontAwesome page):
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
I think the problem is that IIS encodes the URLs and the ../fonts/fontawesome-webfont.eot?request is sent instead of the request ../fonts/fontawesome-webfont.eot%3F.
Please do not suggest deleting the '?' or '#' from urls. They are on purpose and necessary. The question is how to make IIS not encode URLs this way. Any clues would be appreciated.
Edit:
Btw. , web.config requestValidationMode requestPathInvalidCharacters:
<httpRuntime shutdownTimeout="360" maxRequestLength="102400" enable="true" requestValidationMode="2.0" requestPathInvalidCharacters="" />
400 ( ):
Request.Path (?)
IIS ?
Edit2:
, . SquishIt MVC3 . font-awesome.css , .