How to fix Font Awesome WebFont woff2 not found

If you are getting 404 error (not found) for fontawesome-webfont.woff2?v=4.6.3 but you are definitely sure that it is there in your Visual Studio Project

How to fix Font Awesome WebFont woff2 not found, iis woff2 404, woff2 404, fontawesome-webfont.woff2 v=4.7.0 not found, fa-solid-900.woff2 not found, font woff2, fa-solid-900.woff2 404 (not found), fontawesome-webfont.woff2 v=4.7.0 not found

Here is how to fix it in IIS, you need to add the mime type in the config file for woff2:

<system.webServer>
  <staticContent>
    <remove fileExtension=".woff2" />
    <mimeMap fileExtension=".woff2" mimeType="font/woff2" />
  </staticContent>
</system.webServer>

This code tells the web server to serve the .woff2 file with the correct MIME type, which should resolve the issue.

If this step doesn't resolve the issue, you may need to check your website's file permissions or server configuration to ensure that the Font Awesome files are being served correctly.

I hope this helps

Post a Comment

Previous Post Next Post