当前位置:网站首页>IIS cannot load * woff,*. woff2,*. Solution of SVG file
IIS cannot load * woff,*. woff2,*. Solution of SVG file
2022-04-23 21:21:00 【The man running the horse doesn't get enough sleep】
After website publishing , request *.woff,.woff2,.svg All you get from such files is 404, How can we solve this situation ?
Solution 1 :
To server IIS add to SVG,WOFF,WOFF2 Extensions of these file types , That is to say IIS Add MIME type .
Turn on the server IIS Manager –》 Choose the website to publish –》 In the function view , choice MIME type
choice MIME type –》 Mouse click –》 Get into MIME Type management list –》 Click on the top right corner “ add to …”
Enter the corresponding file extension and MIME type , Click on “ determine ” That's it
1) .woff application/x-font-woff
2) .woff2 application/x-font-woff
3) .svg image/svg+xml
Solution 2 :
Open the configuration file of the website program , stay system.webServer Add the following configuration to the node :
<staticContent>
<remove fileExtension=".woff"/>
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<remove fileExtension=".woff2"/>
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" />
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
</staticContent>
版权声明
本文为[The man running the horse doesn't get enough sleep]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/111/202204210543443103.html
边栏推荐
- Mysql database common sense storage engine
- 2.整理华子面经--2
- Xiaomi mobile phone has abandoned the "Mi" brand all over the world and switched to the full name brand of "Xiaomi"
- Two Stage Detection
- Write table of MySQL Foundation (create table)
- Rust更适合经验较少的程序员?
- pytorch 1.7. The model saved by X training cannot be loaded in version 1.4 or earlier
- Send email to laravel
- [※ leetcode refers to offer 48. The longest substring without repeated characters (medium)]
猜你喜欢
Chrome 94 introduces the controversial idle detection API, which apple and Mozilla oppose
Rust更适合经验较少的程序员?
Flomo software recommendation
[leetcode refers to offer 47. Maximum value of gift (medium)]
浅谈数据库设计之三大范式
Xiaomi mobile phone has abandoned the "Mi" brand all over the world and switched to the full name brand of "Xiaomi"
ROS learning notes - tutorial on the use of ROS
Is rust more suitable for less experienced programmers?
小米手机全球已舍弃“MI”品牌,全面改用“xiaomi”全称品牌
wait、waitpid
随机推荐
Thinkphp5 + data large screen display effect
Assertionerror: invalid device ID and runtimeerror: CUDA error: invalid device ordinal
go reflect
DeNO 1.13.2 release
ROS learning notes - tutorial on the use of ROS
Deep understanding of modern mobile GPU (continuously updating)
Deep analysis of C language function
South Korea may ban apple and Google from offering commission to developers, the first in the world
亚马逊和Epic将入驻,微软应用商城向第三方开放
Reentrant function
Question brushing plan - depth first search DFS (I)
Selenium 显示等待WebDriverWait
How to learn software testing? Self study or training? After reading this article, you will understand
Thinking after learning to type
Common problems in deploying projects with laravel and composer for PHP
Solve importerror: cannot import name 'imread' from 'SciPy misc‘
Detectron2 usage model
[leetcode refers to offer 27. Image of binary tree (simple)]
笔记本电脑卡顿怎么办?教你一键重装系统让电脑“复活”