{"id":579,"date":"2022-10-13T22:42:39","date_gmt":"2022-10-14T05:42:39","guid":{"rendered":"https:\/\/blog.iabsolute.com\/?p=579"},"modified":"2022-10-13T22:42:39","modified_gmt":"2022-10-14T05:42:39","slug":"redirect-http-to-https-with-windows-iis-10","status":"publish","type":"post","link":"https:\/\/blog.iabsolute.com\/?p=579","title":{"rendered":"Redirect HTTP to HTTPS with Windows IIS 10"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Download and install the IIS\u00a0<a href=\"https:\/\/www.iis.net\/downloads\/microsoft\/url-rewrite\">URL Rewrite<\/a>\u00a0module, then launch IIS Manager.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"353\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-1.png\" alt=\"\" class=\"wp-image-581\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-1.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-1-300x177.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Select the website you want to apply redirection to, then double-click\u00a0<strong>URL Rewrite<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"265\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-4.png\" alt=\"\" class=\"wp-image-584\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-4.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-4-300x133.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Click\u00a0<strong>Add Rule(s)\u2026<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"353\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-5.png\" alt=\"\" class=\"wp-image-585\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-5.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-5-300x177.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Select\u00a0<strong>Blank rule<\/strong>\u00a0in the\u00a0<strong>Inbound rules<\/strong>\u00a0section, then click the\u00a0<strong>OK<\/strong>\u00a0button.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"402\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-6.png\" alt=\"\" class=\"wp-image-586\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-6.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-6-300x201.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Give your redirect an easy-to-remember name.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"309\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-7.png\" alt=\"\" class=\"wp-image-587\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-7.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-7-300x155.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>In the\u00a0<strong>Matched URL\u00a0<\/strong>section:<ul><li>Set\u00a0<strong>Requested URL:\u00a0<\/strong>to\u00a0Matches the Pattern.<\/li><li>Set<strong>\u00a0Using<\/strong>\u00a0to\u00a0Regular Expressions.<\/li><li>Enter\u00a0(.*)\u00a0as the\u00a0<strong>Pattern.<\/strong><\/li><li>Check\u00a0<strong>Ignore case<\/strong>.<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"409\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-8.png\" alt=\"\" class=\"wp-image-588\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-8.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-8-300x205.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Scroll down to\u00a0<strong>Conditions<\/strong>\u00a0and expand the section if necessary. Select\u00a0Match All\u00a0for\u00a0<strong>Logical grouping<\/strong>, then click the\u00a0<strong>Add\u2026<\/strong>\u00a0button.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"389\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-9.png\" alt=\"\" class=\"wp-image-589\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-9.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-9-300x195.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>A dialog box will open:<ul><li>Type\u00a0{HTTPS}\u00a0in the\u00a0<strong>Condition input<\/strong>\u00a0field.<\/li><li>Set\u00a0<strong>Check if input string<\/strong>\u00a0to\u00a0Matches the Pattern.<\/li><li>Type\u00a0^OFF$\u00a0in the Pattern field.<\/li><li>Check\u00a0<strong>Ignore case<\/strong>.<\/li><li>Click the\u00a0<strong>OK<\/strong>\u00a0button.<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"400\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-10.png\" alt=\"\" class=\"wp-image-590\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-10.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-10-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>You should now see your condition in the list.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"365\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-11.png\" alt=\"\" class=\"wp-image-591\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-11.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-11-300x183.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Scroll down to the\u00a0<strong>Action<\/strong>\u00a0section and enter these settings:<ul><li>Select\u00a0Redirect\u00a0as the\u00a0<strong>Action type<\/strong>.<\/li><li>Type\u00a0https:\/\/{HTTP_HOST}\/{REQUEST_URI}\u00a0in the\u00a0<strong>Rewrite URL<\/strong>\u00a0field.<\/li><li>Uncheck\u00a0Append query string.<\/li><li>Set\u00a0<strong>Redirect type<\/strong>\u00a0to\u00a0Permanent (301).<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"340\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-12.png\" alt=\"\" class=\"wp-image-592\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-12.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-12-300x170.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Click\u00a0<strong>Apply<\/strong>\u00a0in the right-hand\u00a0<strong>Actions<\/strong>\u00a0menu.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"277\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-13.png\" alt=\"\" class=\"wp-image-593\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-13.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-13-300x139.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>You can now check your redirect in a web browser. If there are any problems, you can check the site\u2019s\u00a0web.config\u00a0file to make sure it contains the correct information. In IIS Manager, right-click your site and choose\u00a0<strong>Explore<\/strong>\u00a0from the menu.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"600\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-14.png\" alt=\"\" class=\"wp-image-594\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-14.png 468w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-14-234x300.png 234w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Confirm that the file\u00a0web.config\u00a0exists, then open it in a text editor.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"345\" src=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-15.png\" alt=\"\" class=\"wp-image-595\" srcset=\"https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-15.png 600w, https:\/\/blog.iabsolute.com\/wp-content\/uploads\/2022\/10\/image-15-300x173.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download and install the IIS\u00a0URL Rewrite\u00a0module, then launch IIS Manager. Select the website you want to apply redirection to, then double-click\u00a0URL Rewrite. Click\u00a0Add Rule(s)\u2026 Select\u00a0Blank rule\u00a0in the\u00a0Inbound rules\u00a0section, then click the\u00a0OK\u00a0button. Give your redirect an easy-to-remember name. In the\u00a0Matched URL\u00a0section: &hellip; <a href=\"https:\/\/blog.iabsolute.com\/?p=579\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,21],"tags":[],"class_list":["post-579","post","type-post","status-publish","format-standard","hentry","category-godday","category-ssl"],"_links":{"self":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=579"}],"version-history":[{"count":1,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/579\/revisions"}],"predecessor-version":[{"id":596,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/579\/revisions\/596"}],"wp:attachment":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}