Using standard iis url rewrite module technique to redirect http to https does not work with iisnode.
I am having the following rule configuration to redirect http to https:
<rule name="HTTP to Prod HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
The problem is that requesting http://domain.net is redirected to the https://domain.net/server.js
Any ideas how to get rid of the "server.js" part of the url?