{"id":257,"date":"2019-01-14T16:51:53","date_gmt":"2019-01-14T16:51:53","guid":{"rendered":"https:\/\/unsrewiki.1sys1.com\/?p=257"},"modified":"2019-01-14T16:54:31","modified_gmt":"2019-01-14T16:54:31","slug":"setting-up-an-http-https-redirect-in-iis","status":"publish","type":"post","link":"https:\/\/server-help.org\/index.php\/2019\/01\/14\/setting-up-an-http-https-redirect-in-iis\/","title":{"rendered":"Setting up an HTTP\/HTTPS redirect in IIS"},"content":{"rendered":"\n<p>Once the SSL certificate is installed,  your site still remains accessible via a regular insecure HTTP  connection. To connect securely, visitors must specify the https:\/\/  prefix manually when entering your site\u2019s address in their browsers. <\/p>\n\n\n\n<p>Below are steps to setup HTTPS redirect in IIS:<\/p>\n\n\n\n<ul><li><a rel=\"noreferrer noopener\" href=\"http:\/\/www.iis.net\/downloads\/microsoft\/url-rewrite\" target=\"_blank\">Download and install<\/a> the \u201cURL Rewrite\u201d module. <\/li><li>Open the \u201cIIS Manager\u201d console and select the website you would like to apply the redirection to in the left-side menu: <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2019\/01\/iisred1-1024x546.png\" alt=\"\" class=\"wp-image-258\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred1-1024x546.png 1024w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred1-300x160.png 300w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred1-768x409.png 768w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred1.png 1426w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul><li>Double-click on the \u201cURL Rewrite\u201d icon.<\/li><li>Click \u201cAdd Rule(s)\u201d in the right-side menu.<\/li><li>Select \u201cBlank Rule\u201d in the \u201cInbound\u201d section, then press \u201cOK\u201d: <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"453\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2019\/01\/iisred2.png\" alt=\"\" class=\"wp-image-259\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred2.png 676w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred2-300x201.png 300w\" sizes=\"(max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<ul><li> Enter any rule name you wish.<\/li><li>In the \u201cMatch URL\u201d section: <ul><li>Select \u201cMatches the Pattern\u201d in the \u201cRequested URL\u201d drop-down menu <\/li><li>Select \u201cRegular Expressions\u201d in the \u201cUsing\u201d drop-down menu <\/li><li>Enter the following pattern in the \u201cMatch URL\u201d section: \u201c(.*)\u201d <\/li><li>Check the \u201cIgnore case\u201d box <\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"290\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2019\/01\/iisred3.png\" alt=\"\" class=\"wp-image-260\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred3.png 705w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred3-300x123.png 300w\" sizes=\"(max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<ul><li>In the \u201cConditions\u201d section, select \u201cMatch all\u201d under the \u201cLogical Grouping\u201d drop-down menu and press \u201cAdd\u201d.<\/li><li>In the prompted window: <ul><li> Enter \u201c{HTTPS}\u201d as a condition input <\/li><li>Select \u201cMatches the Pattern\u201d from the drop-down menu <\/li><li>Enter \u201c^OFF$\u201d as a pattern <\/li><li>Press \u201cOK\u201d <\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"313\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2019\/01\/iisred4-1024x313.png\" alt=\"\" class=\"wp-image-261\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred4-1024x313.png 1024w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred4-300x92.png 300w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred4-768x234.png 768w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisred4.png 1186w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul><li>In the \u201cAction\u201d section, select \u201cRedirect\u201d as the action type and specify the following for \u201cRedirect URL\u201d:<ul><li> <strong>https:\/\/{HTTP_HOST}{REQUEST_URI}<\/strong> <\/li><\/ul><\/li><li>Check the \u201cAppend query string\u201d box.<\/li><li>Select the Redirection Type of your choice. The whole \u201cAction\u201d section should look like this:  <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"331\" src=\"https:\/\/unsrewiki.1sys1.com\/wp-content\/uploads\/2019\/01\/iisredirect5.png\" alt=\"\" class=\"wp-image-262\" srcset=\"https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisredirect5.png 696w, https:\/\/server-help.org\/wp-content\/uploads\/2019\/01\/iisredirect5-300x143.png 300w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/figure>\n\n\n\n<ul><li>Click on \u201cApply\u201d on the right side of the \u201cActions\u201d menu. <\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Once the SSL certificate is installed, your site still remains accessible via a regular insecure HTTP connection. To connect securely, visitors must specify the https:\/\/ prefix manually when entering your site\u2019s address in their browsers. Below are steps to setup HTTPS redirect in IIS: Download and install the \u201cURL Rewrite\u201d module. Open the \u201cIIS Manager\u201d&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/257"}],"collection":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/comments?post=257"}],"version-history":[{"count":3,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/257\/revisions"}],"predecessor-version":[{"id":265,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/257\/revisions\/265"}],"wp:attachment":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/media?parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/categories?post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/tags?post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}