Press "Enter" to skip to content

Redirect HTTP to HTTPS over IIS

0

In this tutorial, we’ll see how to automatically redirect http requests to https under IIS.

Prerequisites :

  • Valid configuration of your site with SSL.
  • Have the Rewrite module installed under IIS.

The Rewrite module is available with Web App

Redirect HTTP to HTTPS

1. Open the IIS console, go to site 1 where the redirection must be set up and click on URL Rewrite 2 .
Console IIS

2. Click Add Rules 1 .
Nouvelle regle

3. Select Rule blank 1 and click OK 2 .
Type de regle

4. Content of the rule:

1 Name the rule.
2 Requested URL: Corresponds to the template.
3 Using: Generic characters.
4 Model: *.
5 Conditions: Add two conditions {HTTPS} = off / {HTTP_HOST} = url_of_site
6 Type of action: Redirect.
7 Enter the url with https.
8 Click on Apply.

Règle HTTP vers HTTPS sur IIS

5.The rule is added 1 .
Regle ajoutee


Related Post

IIS pac and dat files for proxy configuration By default, IIS does not issue files with .dat and .pac extensions for automatic proxy configuration. If we try to attach to retrieve the file a 404 e...
Sophos XG: change the SSL VPN port By default the SSL VPN port on the Sophos XG firewall is 8443, since version 17.1 it is possible to change the VPN listening port. %start_p_warning...
Setting up a certification authority under Windows... Presentation A Certificate Authority (CA) can issue certificates for internal internet sites, RDS connections ... The advantage of having a CA is ...
Vbs: IIS log rotation script Unlike linux, Windows does not have a task for log rotation. Below is a Vbs script that allows you to do this rotation. By adapting the sLogFold...

Leave a Reply

Your email address will not be published. Required fields are marked *

It looks like you're using an adblocker.
We use ads to keep our content free. Please support us by turning off your adblocker.