Advertisement
ennio21

Laravel web.config for IIS when web fonts doesn't works

Nov 16th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.55 KB | None | 0 0
  1. <configuration>
  2.   <system.webServer>
  3.     <rewrite>
  4.       <rules>
  5.         <clear />
  6.         <rule name="Imported Rule 1" stopProcessing="true">
  7.           <match url="^(.*)/$" ignoreCase="false" />
  8.           <conditions>
  9.             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  10.           </conditions>
  11.           <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
  12.         </rule>
  13.         <rule name="Imported Rule 2" stopProcessing="true">
  14.           <match url="^" ignoreCase="false" />
  15.           <conditions>
  16.             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  17.             <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  18.           </conditions>
  19.           <action type="Rewrite" url="index.php" />
  20.         </rule>
  21.       </rules>
  22.     </rewrite>
  23.     <staticContent>
  24.         <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
  25.         <mimeMap fileExtension=".ttf" mimeType="application/octet-stream" />
  26.         <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
  27.         <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
  28.         <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
  29.         <mimeMap fileExtension=".json" mimeType="application/json" />
  30.     </staticContent>
  31.     <httpProtocol>
  32.         <customHeaders>
  33.             <remove name="X-Powered-By" />
  34.         </customHeaders>
  35.     </httpProtocol>
  36.   </system.webServer>
  37. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement