{"id":1136,"date":"2025-12-18T16:30:22","date_gmt":"2025-12-18T11:00:22","guid":{"rendered":"https:\/\/youstable.com\/blog\/?p=1136"},"modified":"2025-12-18T16:47:28","modified_gmt":"2025-12-18T11:17:28","slug":"redirect-http-to-https-in-windows","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/redirect-http-to-https-in-windows","title":{"rendered":"How to Redirect HTTP to HTTPS in Windows IIS"},"content":{"rendered":"\n<p>Million of professionals manage the server with the help of Microsoft Internet Information Services <strong>(IIS)<\/strong> for Windows Server. <\/p>\n\n\n\n<p>Search engines and visitors are preferring sites that have SSL certificates enabled, or it has <strong>HTTPS protocol<\/strong> to secure the data and basic security added to the site.<\/p>\n\n\n\n<p><strong>You can Redirect HTTP to HTTPS forcefully in a few steps using the Windows Server IIS manager.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"force-redirect-http-to-https\">Force Redirect HTTP to HTTPS<\/h2>\n\n\n\n<p><strong>Step 1<\/strong>: Launch the ISS server program on your Windows PC and click on \u201c<strong><em>URL Redirect<\/em>\u201d<\/strong> from the menu. In case, if you don\u2019t have the option in the dashboard, then you can add it from the \u201c<strong><em>Web Platform<\/em><\/strong>\u201d option. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1206\" height=\"466\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-1.png\" alt=\"redirect http to https\" class=\"wp-image-1142\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-1.png 1206w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-1-768x297.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-1-770x298.png 770w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-1-400x155.png 400w\" sizes=\"auto, (max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<p><strong>Step 2<\/strong>: Click on \u201c<strong><em>ADD RULE<\/em><\/strong>\u201d from the right-sidebar options, and select \u201c<strong><em>Blank Rule,<\/em><\/strong>\u201d then click on \u201c<strong><em>OK<\/em><\/strong>\u201d to continue. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1144\" height=\"533\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-2.png\" alt=\"redirect http to https\" class=\"wp-image-1141\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-2.png 1144w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-2-768x358.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-2-770x360.png 770w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-2-400x186.png 400w\" sizes=\"auto, (max-width: 1144px) 100vw, 1144px\" \/><\/figure>\n\n\n\n<p><strong>Step 3<\/strong>: Add the desired title to recognize the rule in an instant, and then select the \u201c<strong><em>Requested URL<\/em><\/strong>\u201d and \u201c<strong><em>Regular Expressions<\/em><\/strong>\u201d to default. In the pattern, add \u201c<em><strong>(.*)<\/strong><\/em>\u201d and make sure that \u201c<strong><em>Ignore Case<\/em><\/strong>\u201d is checked. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"275\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-3.png\" alt=\"redirect http to https\" class=\"wp-image-1140\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-3.png 558w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-3-400x197.png 400w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/figure>\n\n\n\n<p><strong>Step 4<\/strong>: In the conditions, click on \u201c<strong><em>ADD<\/em><\/strong>\u201d and select input as \u201c<strong><em>{HTTPS}<\/em><\/strong>\u201d and then select the type as \u201c<strong><em>Matches The Pattern<\/em><\/strong>.\u201d In the pattern, type <strong><em>\u201c^OFF$<\/em><\/strong>\u201d and then click on \u201c<strong><em>OK<\/em><\/strong>\u201d to finish the condition process.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"568\" height=\"286\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-4.png\" alt=\"redirect http to https\" class=\"wp-image-1139\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-4.png 568w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-4-400x201.png 400w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/figure>\n\n\n\n<p><strong>Step 5<\/strong>: In the <strong>Action Section<\/strong>, Select the action type as \u201c<strong><em>Redirect<\/em><\/strong>\u201d and action properties as <strong><em>https:\/\/{HTTP_HOST}\/{R:1}<\/em><\/strong>. Check the \u201cappend query string\u201d along with selecting the redirecting type \u201c<strong><em>Temporary (307)<\/em><\/strong>\u201d and you can select the permanent as well. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"259\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-5.png\" alt=\"redirect http to https\" class=\"wp-image-1138\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-5.png 566w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-5-400x183.png 400w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/figure>\n\n\n\n<p><strong>Step 6<\/strong>: In the right-sidebar panel, you can find the option \u201c<strong><em>APPLY<\/em><\/strong>\u201d to finish the entire process. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"522\" height=\"125\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-6.png\" alt=\"redirect http to https\" class=\"wp-image-1137\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-6.png 522w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/URL-Rewrite-6-400x96.png 400w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/figure>\n\n\n\n<p>It takes a few moments for the changes to take effect, so be patient. Test the process to redirect HTTP to HTTPS after a few minutes. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Million of professionals manage the server with the help of Microsoft Internet Information Services (IIS) for Windows Server. Search engines [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15110,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"iawp_total_views":4,"footnotes":""},"categories":[350],"tags":[1906,1905,1907],"class_list":["post-1136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase","tag-how-to-redirect-http-to-https","tag-redirect-http-to-https","tag-redirect-http-to-https-in-windows-iis"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2023\/12\/How-to-Redirect-HTTP-to-HTTPS-in-Windows-IIS.jpg","author_info":{"display_name":"YouStable","author_link":"https:\/\/www.youstable.com\/blog\/author\/youstable"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/1136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=1136"}],"version-history":[{"count":1,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/1136\/revisions"}],"predecessor-version":[{"id":15111,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/1136\/revisions\/15111"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/15110"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=1136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=1136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=1136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}