34 lines
1.7 KiB
XML
34 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<configuration>
|
|
<system.webServer>
|
|
<rewrite>
|
|
<rules>
|
|
<rule name="Imported Rule 1" stopProcessing="true">
|
|
<match url="^" ignoreCase="false" />
|
|
<conditions logicalGrouping="MatchAll">
|
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
|
|
<add input="{URL}" pattern="(.+)/$" ignoreCase="false" />
|
|
</conditions>
|
|
<action type="Redirect" url="{C:1}" redirectType="Permanent" />
|
|
</rule>
|
|
<rule name="Imported Rule 2" stopProcessing="true">
|
|
<match url="^" ignoreCase="false" />
|
|
<conditions logicalGrouping="MatchAll">
|
|
<add input="{HTTPS}" pattern="^on$" ignoreCase="false" negate="true" />
|
|
<add input="{HTTP_HOST}" pattern="^www\.(.+)$" />
|
|
</conditions>
|
|
<action type="Redirect" url="http://{C:1}{URL}" redirectType="Permanent" />
|
|
</rule>
|
|
<rule name="Imported Rule 3" stopProcessing="true">
|
|
<match url="^([\s\S]*)$" />
|
|
<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/{R:1}" appendQueryString="true" />
|
|
</rule>
|
|
</rules>
|
|
</rewrite>
|
|
</system.webServer>
|
|
</configuration>
|