44 lines
1.6 KiB
XML
44 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<configuration>
|
|
<system.webServer>
|
|
<directoryBrowse enabled="false" />
|
|
<defaultDocument>
|
|
<files>
|
|
<clear />
|
|
<add value="index.html" />
|
|
</files>
|
|
</defaultDocument>
|
|
<staticContent>
|
|
<remove fileExtension=".json" />
|
|
<mimeMap fileExtension=".json" mimeType="application/json" />
|
|
<remove fileExtension=".webp" />
|
|
<mimeMap fileExtension=".webp" mimeType="image/webp" />
|
|
<remove fileExtension=".woff" />
|
|
<mimeMap fileExtension=".woff" mimeType="font/woff" />
|
|
<remove fileExtension=".woff2" />
|
|
<mimeMap fileExtension=".woff2" mimeType="font/woff2" />
|
|
<remove fileExtension=".js" />
|
|
<mimeMap fileExtension=".js" mimeType="application/javascript" />
|
|
<remove fileExtension=".css" />
|
|
<mimeMap fileExtension=".css" mimeType="text/css" />
|
|
</staticContent>
|
|
<httpErrors errorMode="Custom">
|
|
<remove statusCode="404" />
|
|
<error statusCode="404" path="/404.html" responseMode="ExecuteURL" />
|
|
</httpErrors>
|
|
<rewrite>
|
|
<rules>
|
|
<rule name="Handling Trailing Slashes" stopProcessing="false">
|
|
<match url="(.*)" />
|
|
<conditions>
|
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
|
|
</conditions>
|
|
<action type="Rewrite" url="{R:1}" />
|
|
</rule>
|
|
</rules>
|
|
</rewrite>
|
|
<modules runAllManagedModulesForAllRequests="true"/>
|
|
</system.webServer>
|
|
</configuration>
|