{"id":410,"date":"2019-07-19T08:48:31","date_gmt":"2019-07-19T08:48:31","guid":{"rendered":"https:\/\/sectigostore.com\/page\/?p=410"},"modified":"2024-07-01T10:19:26","modified_gmt":"2024-07-01T10:19:26","slug":"redirecting-http-to-https-in-htaccess","status":"publish","type":"post","link":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/","title":{"rendered":"Redirecting HTTP to HTTPS in .htaccess: Migration Guide"},"content":{"rendered":"\n<p>If you are reading this article, we can safely assume that you have already purchased an SSL certificate and looking forward to installing it. If you are still struggling in choosing the right SSL for your website, check out&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.hostreview.com\/blog\/190509-what-is-an-ssl-certificate-everything-a-website-owner-needs-to-know-types-advantages-disadvantages-cost-resources\" target=\"_blank\">this article<\/a>&nbsp;to&nbsp;understand the different SSL types and&nbsp;select the best-suited SSL with cost-efficient options.<\/p>\n\n\n\n<div class=\"graysection\"><h2>Secure a WordPress Website with An SSL Certificate \u2013 Save 87%<\/h2>\n<p><strong>Save 79%<\/strong> on a highly trusted <strong><a href=\"https:\/\/sectigostore.com\/ssl-certificates\/positivessl\">Positive SSL<\/a><\/strong>, an ideal solution for <strong>WordPress<\/strong> CMS websites. It includes unlimited server licenses, reissuances, 256-bit encryption, and more.<\/p>\n<p><a class=\"greenbutton\" style=\"text-decoration: none;\" href=\"https:\/\/sectigostore.com\/ssl-certificates\/positivessl\">Shop for Positive SSL and Save 87%<\/a><\/p>\n<\/div>\n\n\n\n<p>If you are looking for&nbsp;help&nbsp;redirecting HTTP to HTTPS on&nbsp;a&nbsp;<strong>WordPress site<\/strong>, consider our expert guide on&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/sectigostore.com\/blog\/ssl-for-wordpress\/\" target=\"_blank\">How to Install An SSL Certificate on WordPress<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTTP to HTTPS Redirection Guide with .htaccess<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Locate .htaccess&nbsp;in cPanel File Manager<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to cPanel<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on File Manager under \u2018Files.&#8217;<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"193\" src=\"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu-1024x193.png\" alt=\"Files Option in cPanel\" class=\"wp-image-411\" srcset=\"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu-1024x193.png 1024w, https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu-300x56.png 300w, https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu-768x144.png 768w, https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu.png 1335w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Select the option for <strong>Document Root for<\/strong>. Select the domain name from the drop-down menu. OR click on \u2018Settings\u2019 on the upper right side of the page if you have only one website. <\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Locate the .htaccess file<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The .htaccess file is always hidden. So, check \u201cShow Hidden Files (dotfiles)\u201d<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"203\" src=\"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-preference-1-300x203.png\" alt=\"Preference Option in cPanel\" class=\"wp-image-418\" srcset=\"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-preference-1-300x203.png 300w, https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-preference-1.png 502w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Right-click on the .htaccess file and click on <strong>Edit<\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A dialogue box will pop up. Click on <strong>Edit<\/strong> again.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"339\" src=\"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-htaccess-file.png\" alt=\"Edit Option in cPanel\" class=\"wp-image-413\" srcset=\"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-htaccess-file.png 350w, https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-htaccess-file-300x291.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"209\" src=\"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-htaccess-300x209.png\" alt=\"Edit Option in cPanel for htaccess file\" class=\"wp-image-414\" srcset=\"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-htaccess-300x209.png 300w, https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-htaccess.png 505w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n<p>Before editing the code, there are a few things you should take into consideration:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Your .htaccess file must be stored in the website&#8217;s root folder or in the same folder where your site is located.<\/li>\n\n\n\n<li>Search for the word <em>RewriteEngine On<\/em> in .htaccess file to avoid repetition. If <em>RewriteEngine On <\/em>is already written in the .htaccess file, add the below code immediately after it (don\u2019t duplicate the <em>RewriteEngine On<\/em> line)<\/li>\n\n\n\n<li> Type your own domain name in place of <strong>yoursite.com<\/strong> <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">.htaccess Code for HTTP to HTTPS Migration Without WWW<\/h2>\n\n\n\n<p>If you want your website\u2019s non-www version to run on HTTPS (i.e., HTTPS:\/\/<strong>yoursite.com<\/strong>), add these lies in the .htaccess file:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p> RewriteEngine On<br> RewriteCond %{HTTPS} off<br> RewriteRule ^(.*)$ HTTPS:\/\/<strong>yoursite.com<\/strong>%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">.htaccess Code for HTTP to HTTPS Migration for WWW Version<\/h2>\n\n\n\n<p>If you are redirecting the WWW version of your domain to HTTPS (i.e., HTTPS:\/\/www.<strong>yoursite.com<\/strong>), add the below code to the .htaccess file<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p> RewriteEngine On<br> RewriteCond %{HTTP_HOST} !^www.<strong>yoursite.com<\/strong> [NC]<br> RewriteRule ^ HTTPS:\/\/www.<strong>yoursite.com<\/strong> %{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>RewriteCond %{HTTP:X-Forwarded-Proto} !HTTPS<br>RewriteCond %{HTTPS} off <br>RewriteRule ^ HTTPS:\/\/<strong>yoursite.com<\/strong> %{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Redirect All Web Traffic from HTTP to HTTPS<\/h2>\n\n\n\n<p>If you want to redirect all web traffic to HTTPS (instead\nof redirecting to a specific site\/webpage\/folder), insert these codes. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>RewriteEngine On <br>RewriteCond %{SERVER_PORT} 80 <br>RewriteRule ^(.*)$ HTTPS:\/\/www.<strong>yoursite.com<\/strong>\/$1 [R,L]<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Redirect a Particular Domain from HTTP to HTTPS<\/h2>\n\n\n\n<p>If you have multiple domains and want to redirect only a specific domain from HTTP to HTTPS, insert following codes. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>RewriteEngine On <br>RewriteCond %{HTTP_HOST} ^<strong>yoursite\\.com<\/strong> [NC]<br>RewriteCond %{SERVER_PORT} 80 <br>RewriteRule ^(.*)$ HTTPS:\/\/www.<strong>yoursite.com<\/strong>\/$1 [R,L]<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Redirect Only a Specific Folder (webpage) to HTTPS<\/h2>\n\n\n\n<p>For some reasons, people choose to keep only some webpages on HTTPS, while keeping other pages on HTTP. To Redirect a specific folder\/webpage to HTTPS, write following code:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p> RewriteEngine On <br> RewriteCond %{SERVER_PORT} 80 <br> RewriteCond %{REQUEST_URI} folder <br> RewriteRule ^(.*)$ HTTPS:\/\/www.<strong>yoursite.com\/folder\/<\/strong>$1 [R,L]<\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are reading this article, we can safely assume that you have already purchased an SSL certificate and looking forward to installing it. If you are still struggling in choosing the right SSL for your website, check out&nbsp;this article&nbsp;to&nbsp;understand the different SSL types and&nbsp;select the best-suited SSL with cost-efficient options. Secure a WordPress Website with An SSL Certificate \u2013 Save 87% Save 79% on a highly trusted Positive SSL, an ideal solution for WordPress CMS websites. It includes unlimited server licenses, reissuances, 256-bit encryption, and more. Shop for Positive <a href=\"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/\" class=\"more-link\">Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[12,11],"class_list":["post-410","post","type-post","status-publish","format-standard","hentry","category-ssl-basics","tag-htaccess","tag-http-to-https"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Redirecting HTTP to HTTPS in .htaccess: Migration Guide<\/title>\n<meta name=\"description\" content=\"Step-by-step instruction with htaccess rewriting engine code to redirect from HTTP to HTTPS. Understand how to redirect HTTP to HTTPS through htaccess file in cpanel\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redirecting HTTP to HTTPS in .htaccess: Migration Guide\" \/>\n<meta property=\"og:description\" content=\"Step-by-step instruction with htaccess rewriting engine code to redirect from HTTP to HTTPS. Understand how to redirect HTTP to HTTPS through htaccess file in cpanel\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"SectigoStore\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sectigostore\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-19T08:48:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-01T10:19:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu-1024x193.png\" \/>\n<meta name=\"author\" content=\"sectigostorepages\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sectigostore\" \/>\n<meta name=\"twitter:site\" content=\"@sectigostore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"sectigostorepages\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/\"},\"author\":{\"name\":\"sectigostorepages\",\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/#\\\/schema\\\/person\\\/f38f303abd42ade13a74a5d3c12b1cec\"},\"headline\":\"Redirecting HTTP to HTTPS in .htaccess: Migration Guide\",\"datePublished\":\"2019-07-19T08:48:31+00:00\",\"dateModified\":\"2024-07-01T10:19:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/\"},\"wordCount\":573,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/wp-content\\\/uploads\\\/2019\\\/07\\\/cpanel-files-menu-1024x193.png\",\"keywords\":[\"htaccess\",\"http to https\"],\"articleSection\":[\"SSL Basics\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/\",\"url\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/\",\"name\":\"Redirecting HTTP to HTTPS in .htaccess: Migration Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/wp-content\\\/uploads\\\/2019\\\/07\\\/cpanel-files-menu-1024x193.png\",\"datePublished\":\"2019-07-19T08:48:31+00:00\",\"dateModified\":\"2024-07-01T10:19:26+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/#\\\/schema\\\/person\\\/f38f303abd42ade13a74a5d3c12b1cec\"},\"description\":\"Step-by-step instruction with htaccess rewriting engine code to redirect from HTTP to HTTPS. Understand how to redirect HTTP to HTTPS through htaccess file in cpanel\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/#primaryimage\",\"url\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/wp-content\\\/uploads\\\/2019\\\/07\\\/cpanel-files-menu.png\",\"contentUrl\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/wp-content\\\/uploads\\\/2019\\\/07\\\/cpanel-files-menu.png\",\"width\":1335,\"height\":251},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/redirecting-http-to-https-in-htaccess\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SSL Resources\",\"item\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SSL Basics\",\"item\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/ssl-basics\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Redirecting HTTP to HTTPS in .htaccess: Migration Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/#website\",\"url\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/\",\"name\":\"SectigoStore\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/#\\\/schema\\\/person\\\/f38f303abd42ade13a74a5d3c12b1cec\",\"name\":\"sectigostorepages\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/78239165ecb118435d2709ba4dd124dd9151b1f6b069f87258c6514fe3728c7e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/78239165ecb118435d2709ba4dd124dd9151b1f6b069f87258c6514fe3728c7e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/78239165ecb118435d2709ba4dd124dd9151b1f6b069f87258c6514fe3728c7e?s=96&d=mm&r=g\",\"caption\":\"sectigostorepages\"},\"url\":\"https:\\\/\\\/sectigostore.com\\\/page\\\/author\\\/sectigostorepages\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Redirecting HTTP to HTTPS in .htaccess: Migration Guide","description":"Step-by-step instruction with htaccess rewriting engine code to redirect from HTTP to HTTPS. Understand how to redirect HTTP to HTTPS through htaccess file in cpanel","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:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/","og_locale":"en_US","og_type":"article","og_title":"Redirecting HTTP to HTTPS in .htaccess: Migration Guide","og_description":"Step-by-step instruction with htaccess rewriting engine code to redirect from HTTP to HTTPS. Understand how to redirect HTTP to HTTPS through htaccess file in cpanel","og_url":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/","og_site_name":"SectigoStore","article_publisher":"https:\/\/www.facebook.com\/sectigostore\/","article_published_time":"2019-07-19T08:48:31+00:00","article_modified_time":"2024-07-01T10:19:26+00:00","og_image":[{"url":"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu-1024x193.png","type":"","width":"","height":""}],"author":"sectigostorepages","twitter_card":"summary_large_image","twitter_creator":"@sectigostore","twitter_site":"@sectigostore","twitter_misc":{"Written by":"sectigostorepages","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/#article","isPartOf":{"@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/"},"author":{"name":"sectigostorepages","@id":"https:\/\/sectigostore.com\/page\/#\/schema\/person\/f38f303abd42ade13a74a5d3c12b1cec"},"headline":"Redirecting HTTP to HTTPS in .htaccess: Migration Guide","datePublished":"2019-07-19T08:48:31+00:00","dateModified":"2024-07-01T10:19:26+00:00","mainEntityOfPage":{"@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/"},"wordCount":573,"commentCount":0,"image":{"@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu-1024x193.png","keywords":["htaccess","http to https"],"articleSection":["SSL Basics"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/","url":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/","name":"Redirecting HTTP to HTTPS in .htaccess: Migration Guide","isPartOf":{"@id":"https:\/\/sectigostore.com\/page\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/#primaryimage"},"image":{"@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu-1024x193.png","datePublished":"2019-07-19T08:48:31+00:00","dateModified":"2024-07-01T10:19:26+00:00","author":{"@id":"https:\/\/sectigostore.com\/page\/#\/schema\/person\/f38f303abd42ade13a74a5d3c12b1cec"},"description":"Step-by-step instruction with htaccess rewriting engine code to redirect from HTTP to HTTPS. Understand how to redirect HTTP to HTTPS through htaccess file in cpanel","breadcrumb":{"@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/#primaryimage","url":"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu.png","contentUrl":"https:\/\/sectigostore.com\/page\/wp-content\/uploads\/2019\/07\/cpanel-files-menu.png","width":1335,"height":251},{"@type":"BreadcrumbList","@id":"https:\/\/sectigostore.com\/page\/redirecting-http-to-https-in-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"SSL Resources","item":"https:\/\/sectigostore.com\/page\/"},{"@type":"ListItem","position":2,"name":"SSL Basics","item":"https:\/\/sectigostore.com\/page\/ssl-basics\/"},{"@type":"ListItem","position":3,"name":"Redirecting HTTP to HTTPS in .htaccess: Migration Guide"}]},{"@type":"WebSite","@id":"https:\/\/sectigostore.com\/page\/#website","url":"https:\/\/sectigostore.com\/page\/","name":"SectigoStore","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sectigostore.com\/page\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sectigostore.com\/page\/#\/schema\/person\/f38f303abd42ade13a74a5d3c12b1cec","name":"sectigostorepages","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/78239165ecb118435d2709ba4dd124dd9151b1f6b069f87258c6514fe3728c7e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/78239165ecb118435d2709ba4dd124dd9151b1f6b069f87258c6514fe3728c7e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/78239165ecb118435d2709ba4dd124dd9151b1f6b069f87258c6514fe3728c7e?s=96&d=mm&r=g","caption":"sectigostorepages"},"url":"https:\/\/sectigostore.com\/page\/author\/sectigostorepages\/"}]}},"_links":{"self":[{"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/posts\/410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":1,"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"predecessor-version":[{"id":2288,"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/posts\/410\/revisions\/2288"}],"wp:attachment":[{"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sectigostore.com\/page\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}