HTTP – HTTPS Redirection via IIS

Many hosting control panel Windows servers redirects incoming requests as http automatically as https, but some hosting control panels and when they run the site via non-panel IIS don’t support http – https redirections. In these cases, you need to redirect via your web.config file or via IIS. In this article, we will go through redirection operation step-by-step.

Firstly, connect to the server and IIS.

  1. Find your website under Sites at the left menu and click “URL Rewrite” button.

  1. Click “Add Rule(s)” button on the right menu.


  1. Click “Blank Rule” button on the pop-up window.

  1. You can fill “name” field in the pop-up window as you wish. Type ^OFF$ to the pattern section.


  1. Come to the Condition section and click “Add” button. Type {HTTPS} to the Condition input section and ^OFF$ to the Pattern section in the pop-up window, and then click “OK”.

Condition input – Pattern


  1. In the end, come to the Action section and select “Redirect” as “Action Type”, type https://{HTTP_HOST}/{R:1} to the Redirect URL section and select 303 as “Redirect type”.


  1. Your actions are complete, now the only thing you need to do is to apply the actions you’ve done. Click “Apply” button on the right menu.


Related Articles

Leave a Reply

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

Check Also