<rule name="rule1" stopProcessing="true" enabled="true">
<match url="(.*)" negate="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^site\.com$" negate="true" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://site.com/{R:1}" redirectType="Permanent" />
</rule>