To configure forced site redirection from HTTP to HTTPS protocol, add rules for the URLRewrite module, which is enabled by default in the IIS server configuration, in the <system.webServer> section in the web.config file.
The section in the web.config file should look something like this: