46 lines
2.3 KiB
Plaintext
46 lines
2.3 KiB
Plaintext
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<configuration>
|
||
|
<system.webServer>
|
||
|
<rewrite>
|
||
|
<rules>
|
||
|
<rule name="Remove trailing slash" stopProcessing="true">
|
||
|
<match url="(.*)/$" />
|
||
|
<conditions>
|
||
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
||
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
|
||
|
</conditions>
|
||
|
<action type="Redirect" redirectType="Permanent" url="{R:1}" />
|
||
|
</rule>
|
||
|
<rule name="Framework Routing" stopProcessing="true">
|
||
|
<match url="." ignoreCase="false" />
|
||
|
<conditions logicalGrouping="MatchAll">
|
||
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
|
||
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
|
||
|
</conditions>
|
||
|
<action type="Rewrite" url="index.php" />
|
||
|
</rule>
|
||
|
</rules>
|
||
|
</rewrite>
|
||
|
<staticContent>
|
||
|
<remove fileExtension=".js" />
|
||
|
<mimeMap fileExtension=".js" mimeType="application/x-javascript; charset=UTF-8" />
|
||
|
<remove fileExtension=".css" />
|
||
|
<mimeMap fileExtension=".css" mimeType="text/css; charset=UTF-8" />
|
||
|
<remove fileExtension=".woff" />
|
||
|
<remove fileExtension=".eot" />
|
||
|
<remove fileExtension=".ttf" />
|
||
|
<remove fileExtension=".svg" />
|
||
|
|
||
|
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
|
||
|
<mimeMap fileExtension=".ttf" mimeType="application/font-sfnt" />
|
||
|
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
|
||
|
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
|
||
|
</staticContent>
|
||
|
<handlers>
|
||
|
<remove name="PHP7.3" />
|
||
|
<add name="PHP7.3" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\php\7.4.0\php-cgi.exe" resourceType="File" requireAccess="Script" />
|
||
|
</handlers>
|
||
|
<httpErrors errorMode="Detailed" />
|
||
|
</system.webServer>
|
||
|
</configuration>
|