/
Technical instruction - Enforce HTTPS in IIS

Technical instruction - Enforce HTTPS in IIS

  • Open IIS Manager:

    • Launch IIS Manager and select the site for which you want to enforce HTTPS.

  • Require SSL:

    • Double-click SSL Settings in the Features View.

    • Check Require SSL.

    • Click Apply in the right-hand action pane.

  • Redirect HTTP to HTTPS:

    • Install and use the URL Rewrite module if it's not already installed.

    • Navigate to the site in IIS Manager.

    • Double-click URL Rewrite in the Features View.

    • Click Add Rules in the right-hand pane.

    • Select Blank Rule and name it (e.g., "Redirect to HTTPS").

    • Under Conditions, click Add:

      • Condition Input: {HTTPS}

      • Check if input string: Matches the pattern.

      • Pattern: ^OFF$

      • Click OK.

    • Under Action, configure as follows:

      • Action Type: Redirect.

      • Redirect URL: https://{HTTP_HOST}/{R:1}

      • Redirect Type: Permanent (301).

    • Click Apply in the right-hand pane.

    • Test the rule by accessing the site via HTTP.

Related content

Technical instruction - IIS security
Technical instruction - IIS security
More like this
Technical instruction - IIS security settings
Technical instruction - IIS security settings
More like this
Technical instruction - Add http response header on IIS
Technical instruction - Add http response header on IIS
More like this
Technical instruction - Configure Application Pool Identity
Technical instruction - Configure Application Pool Identity
More like this
Technical instruction - Set NTFS Permissions
Technical instruction - Set NTFS Permissions
Read with this
Redirect root to AssertWeb and http to https
Redirect root to AssertWeb and http to https
More like this