My requirement is straight forward. I have installed certificate , in binding added thee certificate. site is working in Https(e.g. https://abc) as expected.
But the requirement is , if any user Enters http://abc then it should redirect to https://abc
I have added the URL rewriting module. Created the Rule. The web.config file code as below
Help out. Its not working.
But the requirement is , if any user Enters http://abc then it should redirect to https://abc
I have added the URL rewriting module. Created the Rule. The web.config file code as below
<rewrite><rules><rulename="http to https"stopProcessing="true"><matchurl="(.*)"/><conditions><addinput="{HTTPS}"pattern="^off$"/></conditions><actiontype="Redirect"url="https://{HTTP_HOST}{REQUEST_URI}"redirectType="Found"/></rule></rules></rewrite>
Help out. Its not working.