Https has become the de-facto standard when it comes to setting up a site being internal or external. Apart from the security implications after changes to its ranking algorithm google gives sites with https entry point a higher ranking.
Eliminating the http entry point altogether is not an option as the users don’t type the https prefix. To solve this issue we can perform a redirect from http to https. Redirecting traffic to our secure channel
The following is the procedure to redirect a site from HTTP to HTTPS protocol using IIS.
Launch IIS Manager and select the site you wish you redirect
Select URL Rewrite.
![](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20692%20178'%3E%3C/svg%3E)
Add new rule
Add the URL Pattern
Setup the pattern to match the url.
Add a Condition
Add a condition that will be triggered based on attributes of the URL in our case it has to http traffic
Add an a Redirection action
- Change the Action Type to Redirect.
- Set the Redirect URL to https://{HTTP_HOST}/{R:1}
- Change Redirect Type to 303.