Skip to content

Commit

Permalink
Create IISWebConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitkerem authored Aug 14, 2020
1 parent af2f896 commit d538f7d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions IISWebConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="false" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}{URL}" />
</rule>
</rules>
</rewrite>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
</staticContent>
</system.webServer>
</configuration>

0 comments on commit d538f7d

Please sign in to comment.