pkmn-classic-framework/web/Web.Public.config
2021-02-15 01:03:05 -05:00

23 lines
748 B
XML

<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
</system.web>
<system.webServer>
<rewrite xdt:Transform="Insert">
<rules>
<rule name="Host and HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^pkmnclassic\.net$" negate="true" />
<add input="{HTTPS}" pattern="OFF" />
</conditions>
<action type="Redirect" url="https://pkmnclassic.net/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>