Reputation: 89
I'm testing a website with font-awesome on localhost and it works fine; but when I upload it to my remote site it doesn't show the fonts anymore. How can I fix it? Tried all debugging but not worked.
The site is there www.sevotec.it/ordinefcs
Upvotes: 2
Views: 6890
Reputation: 5377
This is a problem with the MIME types being reported by your server for the fonts. You need to ensure that Apache / IIS / whatever reports the correct filetype for the font files to be used in your browser. FontAwesome list what the server MIME type headers should be here.
However, as you say you can not alter the configuration, I suggest using a CDN for displaying the icons.
For example, the Getting Started page suggests using Bootstrap CDN. Change the reference in your <head>
element to:
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
And the icons will show up.
Upvotes: 9