====== Redirecting HTTP to HTTPS in IIS ====== To redirect HTTP requests to HTTPS in IIS, you can use the IIS URL Rewrite module. Here are the steps to follow: - Download and install the IIS URL Rewrite module. https://www.iis.net/downloads/microsoft/url-rewrite To enable the IIS Rewrite Module, you can follow these steps: * Open your Internet Information Services (IIS) Manager. * Select any of your websites under Sites in the Connections panel. * Download the URL Rewrite Module for IIS 7 (and later), and follow the prompts to install the module. * Restart your IIS Manager, and you should now have the module available! - Launch IIS Manager and select the website you want to apply redirection to. - Double-click URL Rewrite and click Add Rule(s). - Select Blank rule in the Inbound rules section and click OK. - Give your redirect an easy-to-remember name. - In the Matched URL section, set Requested URL to Matches the Pattern and set Using to Regular Expressions. - Enter (.*) as the Pattern and check Ignore case. - Scroll down to Conditions and expand the section if necessary. - Select Match All for Logical grouping, then click the Add button. - Type {HTTPS} in the Condition input field and set Check if input string to Matches the Pattern. - Type ^OFF$ in the Pattern field and check Ignore case. - Click OK. - Scroll down to the Action section and enter these settings: - Select Redirect as the Action type. - Type https://{HTTP_HOST}/{REQUEST_URI} in the Rewrite URL field. - Uncheck ''Append query string''. - Set Redirect type to ''Permanent (301)''. - Click ''Apply'' in the right-hand Actions menu. **These instructions assume that you’ve already taken the following steps with your site:** - Created your website in IIS - Installed an SSL/TLS certificate - Bound the certificate to your website https://www.ssl.com/how-to/redirect-http-to-https-with-windows-iis-10/ https://www.namecheap.com/support/knowledgebase/article.aspx/9953/38/iis-redirect-http-to-https/ https://stackoverflow.com/questions/51063815/redirect-http-to-https-via-iis