Redirect a site using web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpRedirect enabled="true" destination="https://[HTTPSSITEURL]$S$Q" exactDestination="true" httpResponseStatus="Permanent" />
</system.webServer>
</configuration>