Skip Navigation LinksALVAO 10.0ALVAO Service DeskSystem Implementation in an OrganizationInstallationALVAO Server - Manual InstallationRedirecting HTTP and HTTPS Protocols Skip Navigation Links. Skip Navigation Links Skip Navigation Links.


Redirecting from HTTP to HTTPS using IIS URL Rewrite

If you have trouble redirecting HTTP and HTTPS protocols, you can set automatic redirecting for the IIS server using URL Rewrite.

How to redirect from the HTTP to the HTTPS protocol

  1. Make sure you have the IIS intranet server installed.
  2. Download and install the URL Rewrite module, see the link below.
  3. Make sure that port 80 is configured on the page for which you want to set up the redirecting.
  4. When the URL Rewrite module is installed, the icon of the module should appear in the overview window of the page in IIS Manager. If the icon does not appear, try restarting the IIS.
  5. Select a page, open URL Rewrite, and select Add Rule(s) in the right-hand part of the window. In the Add Rule(s) window, select the Blank rule option and confirm.
  6. In the form that opens, set the following:
    • Enter a name.
    • Match URL:
      • In the Requested URL menu, select Matches the Pattern.
      • In the Using menu, select Wildcards.
      • Type "*" in the text field and check the Ignore case check box.
    • Conditions:
      • In the Logical grouping menu, select Match Any.
      • Select Add. In the window that opens, type "{HTTPS}" in the Condition input field, select Matches the Pattern, enter "off" in the last field, and confirm.
    • Action:
      • Select Redirect from the menu.
      • Type "https://{HTTP_HOST}{REQUEST_URI}" in the text field.
      • Check the Append query string check box and select the Found (302) type.
  7. In the actions on the right-hand side, confirm the rule by clicking on Apply.
  8. The rule has been added and can be enabled/disabled using the enable, disable options.
Note:

Adding a rule using URL rewrite will demonstrate in the web.config file as follows:
<rewrite>
   <rules>
       <rule name="Redirect to http" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
           <match url="*" negate="false"/>
           <conditions logicalGrouping="MatchAny">
               <add input="{HTTPS}" pattern="off"/>
           </conditions>
           <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found"/>
       </rule>
   </rules>
</rewrite>

Warning:
By doing this, you will change the IIS settings. No editing is done in the ALVAO configuration.

Links

For more information please refer to the Microsoft website – https://blogs.technet.microsoft.com/dawiese/2016/06/07/redirect-from-http-to-https-using-the-iis-url-rewrite-module/

 

Did not find what you were looking for? Ask our technical support team.