Fixed the 404 error in svg/woff/woff2 fonts for Web deployment, woffwoff2

Source: Internet
Author: User

Fixed the 404 error in svg/woff/woff2 fonts for Web deployment, woffwoff2

Problem:Recently, when deploying a web project on IIS, the browser always reports that the woff and woff2 fonts cannot be found. A 404 error is reported when the browser loads the font. the loading time is-milliseconds in vain.

Cause:Because the server IIS does not recognize the SVG, WOFF/WOFF2 file types, you only need to add the MIME type to IIS.

Solution

1. Open the IIS manager on the server and find the MIME type.

2. Add three MIME types:

File ExtensionMIME Type

. Svg image/svg + xml
. Woff application/x-font-woff
. Woff2 application/x-font-woff

Note: The MIME type entered in IIS7 in win8 environment is different in IIS6 and IIS7 MIME type management, but the addition method and parameters are the same.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.