In the IIS dashboard, right click on your site and select Explore. Your Root Directory will open, select the web.config file and open it. Make sure the file contains the following code block (if not, add it). If you haven’t web.config file in your root directory, create new .txt file, just place the above code in it, save and then rename the file to web.config. Finally, when you check your website by entering www.youdomain.com in the browser, It should redirect to the https version.