We're enforcing HTTPS on our app that runs on Azure App Service using the rewrite rule in the web.config
as explained in this article:
https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-configure-ssl-certificate#enforce-https-on-your-app
The problem is when we do a swap from a deployment slot to the main production site, the web.config
seems to get recreated and the rewrite rule in the web.config
disappears.
Any suggestions how we can ensure that this rule will stay in tact after a swap?