glyphicons-halflings-regular.woff2 not found 前台错误修正

错误内容如下:

首先在 web.config 里面加上如下内容:

  <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>

其次,在 IIS 的MIME 类型中追加上面指定的两种文件类型

原文地址:https://www.cnblogs.com/daochangone/p/9322456.html