Using IIS URL Rewrite Module

For this you will have to install the URL Rewrite module.
Download from here: http://www.iis.net/downloads/microsoft/url-rewrite
Close and reopen the IIS Manager. After the installation the new icon is only visible, after reopening. (refresh won't work)

Click Explore to open the folder where your website is installed

Edit Web.config file with notepad.
Add the rules in <system.webServer>
Section.
        <rewrite>
            <rules>
                <rule name="HTTP to HTTPS redirect" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{HTTPS}" pattern="off" />
                    </conditions>
                    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="false" redirectType="Permanent" />
                </rule>
            </rules>
        </rewrite>
Or create Web.config file if it doesn’t exist.
Copy and paste this content.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="HTTP to HTTPS redirect" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{HTTPS}" pattern="off" />
                    </conditions>
                    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="false" redirectType="Permanent" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
Open URL Rewrite
You Should now see the newly created rule.
All your traffic is new redirected to HTTPS.