Follow

HTTPS - IIS URL Rewrite

IIS URL Rewrite must be installed:

http://www.iis.net/downloads/microsoft/url-rewrite

  URL_Rewrite.jpg

Open URL Rewrite, on the Actions pane (right side) click "Add Rule(s)"

create the rule:

 

URL_Add_rule.jpg

 

 

web.config:

</security>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <remove name="Telerik.Web.UI.WebResource" />
      <add name="Telerik.Web.UI.WebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
    </handlers>
        <rewrite>
            <rules>
                <rule name="Redirect to HTTPS" stopProcessing="true">
                    <match url="^(.*)Login.aspx(.*)" />
                    <conditions>
                     <add input="{HTTPS}" pattern="^OFF$" />
                  </conditions>
                    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}Login.aspx{R:2}" />
                </rule>
            </rules>
        </rewrite>
  </system.webServer>
Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk