解决IIS部署网站引用woff/woff2/svg字体报404错误

一、问题

在IIS上部署网站,网页引用woff字体时,浏览器报“找不到woff字体”、“404”错误,不仅预设的字体加载不出来,还影响网页加载速度。

二、原因

IIS默认设置情况下不识别.woff、.woff2、.svg这几个后缀的文件。

三、解决方法

在IIS上添加(.woff、.woff2、.svg)MIME类型。

三、操作

1、打开IIS,找到“MIME 类型”。

解决IIS部署网站引用woff/woff2/svg字体报404错误

2、按顺序操作:“MIME 类型”->“添加”->添加三条:

文件扩展名MIME 类型

.woffapplication/x-font-woff

.woff2application/x-font-woff

.svgimage/svg+xml

解决IIS部署网站引用woff/woff2/svg字体报404错误

5 Comments

  1. linuxnet
    六月 09, 2017

    TҺsre аre, after all, some unfavourɑble pߋits
    to freelancing. One necessary levᥱl is that in thᥱ event you woirk
    as a freelance paralegаl you wilⅼ not be eligible forr the sorts of benefits that you would
    have iin working for a regulation agency or a non-public
    attorney. Ιf you happen to reallү feel that such “perks”
    as common health insurance ɑnd other such benefits are essentiaⅼ, freelancіng is
    not going to offeг you thesᥱ benefits.

  2. bitly
    六月 09, 2017

    Very good article. I certainly love this site. Keep writing!

  3. Jack
    六月 15, 2017

    Everybody ⅼaughed trying tto imagine what sort
    of birthday celebrаtion Mary and Jօseph gave for Jesus when He
    was six. Larry puzzled, ?I gᥙessѕ he preferreѕd
    the ame sort oof toys we like.

  4. tumblr
    七月 20, 2017

    Hmm is anyone else experiencing problems with the pictures on this blog loading?
    I’m trying to figure out if its a problem on my end or if it’s the blog.

    Any suggestions would be greatly appreciated.

  5. ceciliahyppolite
    七月 23, 2017

    Hi there! I just wanted to ask if you ever have any problems with hackers?
    My last blog (wordpress) was hacked and I ended up losing many months
    of hard work due to no back up. Do you have any solutions to prevent hackers?

Comments are closed.