{"id":236,"date":"2017-08-25T22:53:10","date_gmt":"2017-08-25T17:23:10","guid":{"rendered":"https:\/\/www.hostjelly.in\/support\/kb\/?post_type=ht_kb&#038;p=236"},"modified":"2017-08-26T12:52:31","modified_gmt":"2017-08-26T07:22:31","slug":"how-to-redirect-website-from-http-to-https-in-windows-hosting","status":"publish","type":"ht_kb","link":"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/","title":{"rendered":"How to redirect Website from HTTP to HTTPS in windows hosting?"},"content":{"rendered":"<p>HostJelly Windows servers support IIS URL Rewrite module. If you have an SSL certificate\u00a0on your website, you can use this module to automatically redirect your website visitors from HTTP to HTTPS.<\/p>\n<h2 id=\"how-to-redirect-website-from-http-to-https-in-windows-hosting-with-iis\" >How to redirect Website from HTTP to HTTPS in windows hosting with IIS<\/h2>\n<ol>\n<li>Be sure that the SSL Certificate is properly installed on your domain, and the website is resolving on your domain like https:\/\/example.com<\/li>\n<li>Create a\u00a0<strong>web.config<\/strong>\u00a0file under the site&#8217;s directory and add the following lines to it. In case there already exists a <strong>web.config<\/strong> in your site&#8217;s directory, carefully edit it to add these lines:\n<pre>&lt;?xml version=\"1.0\"?&gt;\r\n&lt;configuration&gt;\r\n\u00a0 &lt;system.webServer&gt;\r\n\u00a0 \u00a0 \u00a0&lt;rewrite&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&lt;rules&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&lt;rule name=\"Redirect to HTTPS\" stopProcessing=\"true\"&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&lt;match url=\"(.*)\" \/&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;conditions&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;add input=\"{HTTPS}\" pattern=\"^OFF$\" \/&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;\/conditions&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&lt;action type=\"Redirect\" url=\"https:\/\/example.com\/{R:1}\" redirectType=\"Permanent\" \/&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&lt;\/rule&gt;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&lt;\/rules&gt;\r\n\u00a0 \u00a0 \u00a0&lt;\/rewrite&gt;\r\n\u00a0 &lt;\/system.webServer&gt;\r\n&lt;\/configuration&gt;<\/pre>\n<\/li>\n<li><strong>example.com<\/strong> needs to be replaced by the Domain Name for which the SSL Certificate is issued.<\/li>\n<\/ol>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"ht_kb_category":[21],"ht_kb_tag":[],"class_list":["post-236","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-windows-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to redirect Website from HTTP to HTTPS in windows hosting? - HostJelly<\/title>\n<meta name=\"description\" content=\"Learn How to redirect Website from HTTP to HTTPS in windows hosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to redirect Website from HTTP to HTTPS in windows hosting? - HostJelly\" \/>\n<meta property=\"og:description\" content=\"Learn How to redirect Website from HTTP to HTTPS in windows hosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/\" \/>\n<meta property=\"og:site_name\" content=\"HostJelly\" \/>\n<meta property=\"article:modified_time\" content=\"2017-08-26T07:22:31+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/\",\"url\":\"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/\",\"name\":\"How to redirect Website from HTTP to HTTPS in windows hosting? - HostJelly\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostjelly.in\/support\/kb\/#website\"},\"datePublished\":\"2017-08-25T17:23:10+00:00\",\"dateModified\":\"2017-08-26T07:22:31+00:00\",\"description\":\"Learn How to redirect Website from HTTP to HTTPS in windows hosting\",\"breadcrumb\":{\"@id\":\"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Knowedgebase\",\"item\":\"https:\/\/www.hostjelly.in\/support\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Article\",\"item\":\"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to redirect Website from HTTP to HTTPS in windows hosting?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostjelly.in\/support\/kb\/#website\",\"url\":\"https:\/\/www.hostjelly.in\/support\/kb\/\",\"name\":\"HostJelly\",\"description\":\"HostJelly Knowledge Base\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostjelly.in\/support\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to redirect Website from HTTP to HTTPS in windows hosting? - HostJelly","description":"Learn How to redirect Website from HTTP to HTTPS in windows hosting","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:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/","og_locale":"en_US","og_type":"article","og_title":"How to redirect Website from HTTP to HTTPS in windows hosting? - HostJelly","og_description":"Learn How to redirect Website from HTTP to HTTPS in windows hosting","og_url":"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/","og_site_name":"HostJelly","article_modified_time":"2017-08-26T07:22:31+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/","url":"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/","name":"How to redirect Website from HTTP to HTTPS in windows hosting? - HostJelly","isPartOf":{"@id":"https:\/\/www.hostjelly.in\/support\/kb\/#website"},"datePublished":"2017-08-25T17:23:10+00:00","dateModified":"2017-08-26T07:22:31+00:00","description":"Learn How to redirect Website from HTTP to HTTPS in windows hosting","breadcrumb":{"@id":"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/how-to-redirect-website-from-http-to-https-in-windows-hosting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Knowedgebase","item":"https:\/\/www.hostjelly.in\/support\/kb\/"},{"@type":"ListItem","position":2,"name":"Article","item":"https:\/\/www.hostjelly.in\/support\/kb\/knowledge-base\/"},{"@type":"ListItem","position":3,"name":"How to redirect Website from HTTP to HTTPS in windows hosting?"}]},{"@type":"WebSite","@id":"https:\/\/www.hostjelly.in\/support\/kb\/#website","url":"https:\/\/www.hostjelly.in\/support\/kb\/","name":"HostJelly","description":"HostJelly Knowledge Base","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostjelly.in\/support\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/ht_kb\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":8,"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/ht_kb\/236\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/ht_kb\/236\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/ht_kb_category?post=236"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.hostjelly.in\/support\/kb\/wp-json\/wp\/v2\/ht_kb_tag?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}