Hosting Windows Windows Server 

How to redirect HTTP to HTTPS url in Windows server

Step1: Goto Windows Server and open IIS(internet information service) and select the site to which you want the HTTP URL to be redirected to HTTPS URL.

Step2: Then in Management Section of the Site selected, find “web platform installer” and double click to open, here search for “URL rewrite” keyword after listing that install that to you server IIS.

Note: If, after installing URL rewrite didn’t appear under IIS, please close and reopen the IIS, it will list under IIS tab.

Step3: Then double click URL rewrite and then click on Add rule at right top, then in that under inbound rules click on the blank rule.

Step4: here give some name to the rule ex:(Http to https) the leave default value as it is. under Match URL in pattern textbox write this pattern ->” (.*) ” 

Step5: the goto conditions tab below there click on add, in add condition give condition input as ” {HTTPS} “, then, in check if input string, keep default value as it is. then in Pattern write ” ^OFF$ ” and click ok.

Step6: Go to Action tab here in action type dropdown select “Redirect”, then under action properties Rewrite Url enter this pattern :” https://{HTTP_HOST}/{R:1} ” , then in redirect type dropdown select ” see other (303) “.

Step7: in the top right corner now click on Apply to see the changes and go back to IIS site and check your site.

Now for example, if you type” then it should go to “”.

Also Read:  How to Install Phpmyadmin in ubuntu.

you can also refer to this YoutubeVideo below.:

Arjun is is a web developer/designer, who is fond of the web. He lives in Manipal, Karnataka, India.

Related posts