Resolves the IIS Web site. Woff 404 (not Found) issue

Source: Internet
Author: User

One, in the case of IIS Manager without permissions, the system.webserver node in Web. config is configured as follows:

<system.webserver>        <staticcontent>      <Removefileextension= ". Woff" />      <MimeMapfileextension= ". Woff"MimeType= "Font/x-font-woff" />          </staticcontent>  </system.webserver>

Configure the <remove fileextension= ". Woff"/> To prevent this error: "When the unique key property" FileExtension "is set to". Woff ", you cannot add duplicate collection items of type" MimeMap ". If you add only the following <mimemap fileextension= ". Woff" mimetype= "Font/x-font-woff"/> This node, and without reporting this error, the Remove node can not be added. Another "Font/x-font-woff" is the MIME type value of the Woff font.

Ii. adding MIME types for Woff fonts in IIS

Open the IIS Manager in Control Panel, select Current IIS, open MIME type configuration, click on the Add function of the MIME type to the right of the action bar, pop up the Add MIME Type dialog box, fill in the file extension. woff,mime type can be filled Font/x-font-woff or Application/x-font-woff, click OK to successfully add the. woff extension to the Mimi TYPE, now open the Web request Woff font will not appear 404 Not Found error.

Three, Woff font introduction

The Web Open font format (Web open font format, or woff) is a font format standard used by Web pages. This font format, which was developed in 2009, is now being standardized by the web-font Working Group of the WWW Consortium in order to be the recommended standard. This font format not only effectively utilizes compression to reduce file size, it does not contain encryption and is not subject to DRM (digital copyright management) restrictions.

On April 8, 2010, after the Mozilla Foundation, Opera Software, and Microsoft submitted Woff, the World Wide Web Consortium commented that it was hoped that Woff would soon become a "single, interoperable (font) format" supported by all browsers. [6] on July 27, 2010, the World Wide Web Consortium published Woff as a working draft.

Woff MIME type is: Application/x-font-woff (Font/x-font-woff can also), the current IIS7 inside the default does not have this MIME type, if you want to let the site support this, Please add Woff to the MIME type inside the IIS7.

Iv. Introduction to MIME types

MIME (Multipurpose Internet Mail Extensions) Multipurpose Internet Mail Extension type, which sets the type of file for an extension to be opened by an application, when the extension file is accessed, The browser will automatically open with the specified application. Many are used to specify some client-customized file names, as well as some ways to open media files.

Resolves the IIS Web site. Woff 404 (not Found) issue

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.