IIS server blocking access to .webp files IIS server blocking access to .webp files wordpress wordpress

IIS server blocking access to .webp files


You'll need to add this config to your webconfig file:

<configuration>     <system.webServer>         <staticContent>             <mimeMap fileExtension=".webp" mimeType="image/webp" />         </staticContent>     </system.webServer> </configuration>


The fastest solution with less headache is to just add the file extension .webp to the mime types as below:

  1. Select website from IIS Manager:1. select website from IIS Manager

  2. Add file extension to Mime Types:2. add file extension to Mime Types