Hi i want to insert a rewrite rule for "Redirect to HTTPS" but only on my release config
This is how the rewrite rule looks
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to HTTPS">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
<add input="{URL}" pattern="/$" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Redirect" url="https://{SERVER_NAME}/{R:1}" redirectType="SeeOther" />
</rule>
</rules>
</rewrite>
</system.webServer>
How to achiev this only in my release.config?
You can look at web.config transformations: https://msdn.microsoft.com/library/dd465318(v=vs.100).aspx
To create and code a transform file