Bootstrap: glyphicons-halflings-regular.woff2 404 not found

This problem happens because IIS does not know about woff and woff2 file mime types.


To solve this problem, we can add the following lines in the web.config file.

<configuration>
  <system.web>
    ...
  </system.web>
  <system.webServer>
    <staticContent>
      <remove fileExtension=".woff" />
      <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
      <remove fileExtension=".woff2" />
      <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
    </staticContent>
  </system.webServer>
</configuration>


Reference:

https://stackoverflow.com/questions/32300578/how-to-remove-error-about-glyphicons-halflings-regular-woff2-not-found


1 条评论

    发表评论

    电子邮件地址不会被公开。 必填项已用 * 标注