I have couple of questions regarding IIS configuration.
When I enable HTTP redirect in IIS and use http://localhost/SubApp
it's redirected to https://localhost/SubApp
, but when it's http://localhost/service.svc
it's not redirected to https://localhost/service.svc
.
Also with redirect enabled URL like this https://localhost/test.html
is not opened, I see message
Can’t reach this page. Make sure the web address https://localhost is correct.
Content of file very simple: <html><body>test html</body></html>
.
However when HTTP redirect disabled I can open this URL. I have self-signed certificate.
Config for HTTP redirect is
<httpRedirect enabled="true" destination="https://localhost" exactDestination="false" childOnly="false" httpResponseStatus="Permanent" />
So, questions are:
*.svc
is not redirected to HTTPS protocol?https://localhost/test.html
can't be opened with enabled http redirect?After tests we have found out that the only possibility to use HTTP redirect (from HTTP to HTTPS) is:
In this case HTTP redirect works fine.