{"id":372,"date":"2021-06-24T08:22:21","date_gmt":"2021-06-24T08:22:21","guid":{"rendered":"https:\/\/hostandtech.com\/help\/?p=372"},"modified":"2021-12-30T17:28:14","modified_gmt":"2021-12-30T17:28:14","slug":"how-to-redirect-website-from-http-to-https-on-iis7","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/","title":{"rendered":"How to Redirect website from HTTP to HTTPS on IIS"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"372\" class=\"elementor elementor-372\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1ae2de6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1ae2de6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d56ad90\" data-id=\"d56ad90\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bedae6e elementor-widget elementor-widget-heading\" data-id=\"bedae6e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-large\">Redirect website to HTTPS on IIS<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4145795 elementor-widget elementor-widget-text-editor\" data-id=\"4145795\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Firstly, make sure that you have an <a href=\"https:\/\/www.hostandtech.com\/comodo-essential-ssl-wildcard-certificate\/\" target=\"_blank\" rel=\"noopener\">SSL certificate<\/a> already installed. After that to Configure IIS7 ,IIS8 to force using <a href=\"https:\/\/hostandtech.com\/help\/general-topics\/what-is-the-difference-between-http-and-https-and-how-https-work\/\" target=\"_blank\" rel=\"noopener\">HTTPS<\/a> for website, follow the steps:\u00a0<\/p><ul><li>Download and install the IIS URL Rewrite Module.<\/li><li>Open IIS Manager, in the console select the website you want to redirect.<\/li><li>Select URL Rewrite.<\/li><li>Click Add Rules.<\/li><li>Select Blank Rule, click OK.<\/li><li>Enter the Name of rule.<\/li><li>In the Match URL section choose \u201cMatches the Pattern\u201d in the Requested URL drop-down.<\/li><li>Next select \u201cRegular Expressions\u201d in the Using drop-down.<\/li><li>Enter: \u201c(.*)\u201d in the Match URL section.<\/li><li>In the conditions section, select Match All under Logical Grouping, the click Add.<\/li><li>In the next window:<br \/>Enter {HTTPS} as the condition input.<br \/>Select \u201cMatches and Pattern\u201d from the drop-down, Enter ^OFF$ as the pattern, Click OK.<\/li><li>In the Action section, click Redirect and then specify the Redirect URL as: https:\/\/{HTTP_HOST}\/{R:1}<br \/>13.Check the Append Query String box.<\/li><li>Choose your redirection type (301).<\/li><li>Click Apply.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-13d54d2 elementor-widget elementor-widget-text-editor\" data-id=\"13d54d2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>After that , you\u2019ll have to apply the rule to your website.<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d5c2839 elementor-alert-info elementor-widget elementor-widget-alert\" data-id=\"d5c2839\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"alert.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-alert\" role=\"alert\">\n\n\t\t\t\t\t\t<span class=\"elementor-alert-title\">Note<\/span>\n\t\t\t\n\t\t\t\t\t\t<span class=\"elementor-alert-description\">The Require SSL is NOT checked under SSL Settings for your website.<\/span>\n\t\t\t\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-820841b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"820841b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8cea8e6\" data-id=\"8cea8e6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-207d4c5 elementor-widget elementor-widget-text-editor\" data-id=\"207d4c5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Setting up IIS HTTP to HTTPS Redirect Rules<\/h2><ul><li>In the IIS dashboard, right click on your site and select Explore.<\/li><li>Your Root Directory will open, select the\u00a0<strong>web.config<\/strong> file and open it.<\/li><li>Make sure the file contains the following code block (if not, add it).<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fd6ea4a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fd6ea4a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bebdf4c\" data-id=\"bebdf4c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a3dc65c elementor-widget elementor-widget-code-highlight\" data-id=\"a3dc65c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-solarizedlight copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp><configuration>\n<system.webServer>\n<rewrite>\n<rules>\n<rule name=\u201dHTTPS force\u201d enabled=\u201dtrue\u201d stopProcessing=\u201dtrue\u201d>\n<match url=\u201d(.*)\u201d \/>\n<conditions>\n<add input=\u201d{HTTPS}\u201d pattern=\u201d^OFF$\u201d \/>\n<\/conditions>\n<action type=\u201dRedirect\u201d url=\u201dhttps:\/\/{HTTP_HOST}\/{R:1}\u201d redirectType=\u201dPermanent\u201d \/>\n<\/rule>\n<\/rules>\n<\/rewrite>\n<\/system.webServer>\n<\/configuration><\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bbbf3b8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bbbf3b8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-66c4697\" data-id=\"66c4697\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b045b2d elementor-widget elementor-widget-text-editor\" data-id=\"b045b2d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>If you haven\u2019t web.config file in your root directory, create new .txt file, just place the above code in it, save and then rename the file to web.config.<\/li><li>Finally, when you check your website by entering www.youdomain.com in the browser, It should redirect to the https version.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bebb600 elementor-alert-info elementor-widget elementor-widget-alert\" data-id=\"bebb600\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"alert.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-alert\" role=\"alert\">\n\n\t\t\t\t\t\t<span class=\"elementor-alert-title\">Note<\/span>\n\t\t\t\n\t\t\t\t\t\t<span class=\"elementor-alert-description\">These above steps to redirecting IIS from HTTP to HTTPS works with IIS 5, 6, 7, 8, 8.5, and IIS 10.<\/span>\n\t\t\t\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7209e2c elementor-widget elementor-widget-elementor-faq-schema\" data-id=\"7209e2c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"elementor-faq-schema.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                                    <script type=\"application\/ld+json\">\n                    {\n                        \"@context\": \"https:\/\/schema.org\",\n                        \"@type\": \"FAQPage\",\n                        \"mainEntity\": [\n                         {\n                            \"@type\": \"Question\",\n                            \"name\": \"How Do I Setting up IIS HTTP to HTTPS Redirect Rules?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;ul&gt;&lt;li&gt;In the IIS dashboard, right click on your site and select Explore.&lt;\/li&gt;&lt;li&gt;Your Root Directory will open, select the\u00a0&lt;strong&gt;web.config&lt;\/strong&gt; file and open it.&lt;\/li&gt;&lt;li&gt;Make sure the file contains the following code block (if not, add it).&lt;\/li&gt;&lt;li&gt;If you haven\u2019t web.config file in your root directory, create new .txt file, just place the above code in it, save and then rename the file to web.config.&lt;\/li&gt;&lt;li&gt;Finally, when you check your website by entering www.youdomain.com in the browser, It should redirect to the https version.&lt;\/li&gt;&lt;\/ul&gt;\"\n                            }\n                                                    }\n                    ]\n                    }\n                <\/script>\n                    \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Redirect website to HTTPS on IIS Firstly, make sure that you have an SSL certificate already installed. After that to Configure IIS7 ,IIS8 to force using HTTPS for website, follow the steps:&nbsp; Download and install the IIS URL Rewrite Module. Open IIS Manager, in the console select the website you want to redirect. Select URL [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1824,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[256,261],"tags":[285,294,293,291,301],"class_list":["post-372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ssl-certificates","category-windows-server","tag-iis","tag-iis-7","tag-install-ssl","tag-ssl-certificate","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Redirect Website To HTTPS On IIS 7 Til IIS10 By Using The URL Rewrite<\/title>\n<meta name=\"description\" content=\"Redirect website to HTTPS On IIS7 and IIS8 by install your SSL in IIS7 and bind it to your website and add the block code to web.config file\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redirect Website To HTTPS On IIS 7 Til IIS10 By Using The URL Rewrite\" \/>\n<meta property=\"og:description\" content=\"Redirect website to HTTPS On IIS7 and IIS8 by install your SSL in IIS7 and bind it to your website and add the block code to web.config file\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/\" \/>\n<meta property=\"og:site_name\" content=\"STS Host and Tech Knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-24T08:22:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-30T17:28:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"138\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"HostandTech Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Redirect Website To HTTPS On IIS 7 Til IIS10 By Using The URL Rewrite\" \/>\n<meta name=\"twitter:description\" content=\"Redirect website to HTTPS On IIS7 and IIS8 by install your SSL in IIS7 and bind it to your website and add the block code to web.config file\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HostandTech Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/\"},\"author\":{\"name\":\"HostandTech Support\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042\"},\"headline\":\"How to Redirect website from HTTP to HTTPS on IIS\",\"datePublished\":\"2021-06-24T08:22:21+00:00\",\"dateModified\":\"2021-12-30T17:28:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/\"},\"wordCount\":314,\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png\",\"keywords\":[\"IIS\",\"IIS 7\",\"Install SSL\",\"SSL Certificate\",\"Windows\"],\"articleSection\":[\"SSL Certificates\",\"Windows Server\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/\",\"url\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/\",\"name\":\"Redirect Website To HTTPS On IIS 7 Til IIS10 By Using The URL Rewrite\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png\",\"datePublished\":\"2021-06-24T08:22:21+00:00\",\"dateModified\":\"2021-12-30T17:28:14+00:00\",\"description\":\"Redirect website to HTTPS On IIS7 and IIS8 by install your SSL in IIS7 and bind it to your website and add the block code to web.config file\",\"breadcrumb\":{\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#primaryimage\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png\",\"width\":300,\"height\":138,\"caption\":\"Redirect website to HTTPS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hostandtech.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Redirect website from HTTP to HTTPS on IIS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hostandtech.com\/help\/#website\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"name\":\"STS Host and Tech Knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hostandtech.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\",\"name\":\"STS Host and Tech Inc\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"width\":630,\"height\":270,\"caption\":\"STS Host and Tech Inc\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/stshostandtech\",\"https:\/\/x.com\/stshostandtech\",\"https:\/\/www.instagram.com\/stshostandtech\",\"https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042\",\"name\":\"HostandTech Support\",\"url\":\"https:\/\/hostandtech.com\/help\/author\/m-hajobied\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Redirect Website To HTTPS On IIS 7 Til IIS10 By Using The URL Rewrite","description":"Redirect website to HTTPS On IIS7 and IIS8 by install your SSL in IIS7 and bind it to your website and add the block code to web.config file","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/","og_locale":"en_US","og_type":"article","og_title":"Redirect Website To HTTPS On IIS 7 Til IIS10 By Using The URL Rewrite","og_description":"Redirect website to HTTPS On IIS7 and IIS8 by install your SSL in IIS7 and bind it to your website and add the block code to web.config file","og_url":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/","og_site_name":"STS Host and Tech Knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2021-06-24T08:22:21+00:00","article_modified_time":"2021-12-30T17:28:14+00:00","og_image":[{"width":300,"height":138,"url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png","type":"image\/png"}],"author":"HostandTech Support","twitter_card":"summary_large_image","twitter_title":"Redirect Website To HTTPS On IIS 7 Til IIS10 By Using The URL Rewrite","twitter_description":"Redirect website to HTTPS On IIS7 and IIS8 by install your SSL in IIS7 and bind it to your website and add the block code to web.config file","twitter_image":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"HostandTech Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/"},"author":{"name":"HostandTech Support","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042"},"headline":"How to Redirect website from HTTP to HTTPS on IIS","datePublished":"2021-06-24T08:22:21+00:00","dateModified":"2021-12-30T17:28:14+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/"},"wordCount":314,"publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"image":{"@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png","keywords":["IIS","IIS 7","Install SSL","SSL Certificate","Windows"],"articleSection":["SSL Certificates","Windows Server"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/","url":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/","name":"Redirect Website To HTTPS On IIS 7 Til IIS10 By Using The URL Rewrite","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#primaryimage"},"image":{"@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png","datePublished":"2021-06-24T08:22:21+00:00","dateModified":"2021-12-30T17:28:14+00:00","description":"Redirect website to HTTPS On IIS7 and IIS8 by install your SSL in IIS7 and bind it to your website and add the block code to web.config file","breadcrumb":{"@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#primaryimage","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/Redirect-website-from-HTTP-to-HTTPS--e1640885208942.png","width":300,"height":138,"caption":"Redirect website to HTTPS"},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/help\/windows-server\/how-to-redirect-website-from-http-to-https-on-iis7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/help\/"},{"@type":"ListItem","position":2,"name":"How to Redirect website from HTTP to HTTPS on IIS"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/help\/#website","url":"https:\/\/hostandtech.com\/help\/","name":"STS Host and Tech Knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/help\/#organization","name":"STS Host and Tech Inc","url":"https:\/\/hostandtech.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","width":630,"height":270,"caption":"STS Host and Tech Inc"},"image":{"@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech","https:\/\/www.instagram.com\/stshostandtech","https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042","name":"HostandTech Support","url":"https:\/\/hostandtech.com\/help\/author\/m-hajobied\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":220,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":13077,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/372\/revisions\/13077"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media\/1824"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}