{"id":5088,"date":"2021-10-15T18:57:58","date_gmt":"2021-10-15T18:57:58","guid":{"rendered":"https:\/\/www.cldy.com\/support\/?post_type=docs&#038;p=5088"},"modified":"2022-09-18T00:19:22","modified_gmt":"2022-09-17T16:19:22","password":"","slug":"how-do-i-enforce-https","status":"publish","type":"docs","link":"https:\/\/www.cldy.com\/support\/help\/how-do-i-enforce-https\/","title":{"rendered":"How to Enforce HTTPS connection?"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">After knowing the functions of redirecting a domain, as well as the steps on \u201c<strong><a href=\"https:\/\/www.cldy.com\/support\/help\/how-to-redirect-a-domain-to-another-domain\/\" data-type=\"URL\" data-id=\"https:\/\/www.cldy.com\/support\/help\/how-to-redirect-a-domain-to-another-domain\/\">How to Redirect a Domain to Another Domain?<\/a><\/strong>\u201d it\u2019s time to learn how to enforce HTTPS on a domain.\u00a0<\/p>\r\n\r\n\r\n\r\n<h2>Understanding https<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Before we go on to the process of enforcing HTTPS onto your domain, though, we\u2019ll give you the basics of the difference between HTTP and HTTPS as a web communication protocol.\u00a0<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You may notice that web addresses that you navigate to on your browser\u2019s address bar are either \u201chttp:\/\/\u201d or \u201chttps:\/\/\u201d. The simple explanation is that \u201chttp:\/\/\u201d is \u201cHyperText Transfer Protocol,\u201d which allows you to access a website when you type the full address on the browser unsecured, while \u201chttps:\/\/\u201d is \u201cHyperText Transfer Protocol Secure,\u201d which is a transfer of data from the website to your browser with encryption involved.\u00a0<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This means that as you access the website over the internet through WiFi or Data (4G\/LTE or 5G), HTTP is open for hackers to intercept the data being transferred, while HTTPS secures the connection via encryption, and will protect the end user from data interception, especially when transferring sensitive information. Isn\u2019t that cool?\u00a0<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Google has also been marking \u201cHTTP\u201d-only websites as \u201cnot secure.\u201d In a search for a keyword you are targeting your website for, Google might exclude your website from the results, as it has been marked \u201cnot secure.\u201d Not only that, Google Chrome users will be warned that your website is not secure, and will not load your page outright. The website visitor will be provided with an option to continue to your website if they choose to take a risk, and this might cause frustration, distrust, and, as a given, increase page load times.\u00a0<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">As we mentioned in our Knowledgebase article, \u201cHow to install WP Super Cache to speed up your WordPress website?\u201d page load times are super important because it increases conversion rates and possible profitability, and so, if users get to go directly to your website without Google Chrome\u2019s warning, it will be better for you and your brand or business.\u00a0<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Speaking of profitability, HTTPS is also important in maintaining an eCommerce site. As you well know, shopping carts employ the use of payment facilities such as credit and debit cards, or payment processors like PayPal, Skrill, and the like, so users need to be given extra security when they provide you with their personal and more importantly, financial data.\u00a0<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">HTTPS is enforced using an SSL, or a secure sockets layer file, which is accessible via the \u201cSSL\/TLS Status\u201d menu on the \u201cSecurity\u201d section of your CLDY cPanel.\u00a0<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When you purchase a domain and hosting service from CLDY, your website is accessible via the \u201chttp:\/\/\u201d and \u201chttps:\/\/\u201d protocols both. So, in order to ensure that your website\u2019s visitors will only be visiting your site via the secure protocol, \u201chttps:\/\/\u201d, you need to enforce \u201chttps:\/\/\u201d on your domains and websites.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Now that you know the importance of using HTTPS, it\u2019s time to apply it to your website.\u00a0<\/p>\r\n\r\n\r\n\r\n<h2>Steps to enforce https using cPanel redirects<\/h2>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li><strong>Log In to your CLDY cPanel.<\/strong>\r\n<ul>\r\n<li>Usually, the cPanel Web Address can be navigated to through your domain, in this format:\u00a0\r\n<ul>\r\n<li><a href=\"https:\/\/yourdomain.com\/cpanel\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/yourdomain.com\/cpanel<\/a>\u00a0<br \/><br \/><\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"2\">\r\n<li><strong>Scroll down to the Domains section and find the \u201cRedirects\u201d option.<br \/><br \/><img decoding=\"async\" class=\"alignnone size-full wp-image-6097\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_domains-redirects.png\" alt=\"\" width=\"985\" height=\"184\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_domains-redirects.png 985w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_domains-redirects-300x56.png 300w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_domains-redirects-768x143.png 768w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><br \/><br \/><\/strong><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"3\">\r\n<li><strong>Go in to \u201cRedirects.\u201d\u00a0<br \/><br \/><\/strong><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"4\">\r\n<li><strong>On the \u201cType\u201d field, set \u201cType\u201d to \u201cPermanent (301).\u201d<br \/><br \/><img decoding=\"async\" class=\"alignnone size-full wp-image-6099\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-type.png\" alt=\"\" width=\"657\" height=\"82\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-type.png 657w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-type-300x37.png 300w\" sizes=\"(max-width: 657px) 100vw, 657px\" \/><br \/><br \/><\/strong><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"5\">\r\n<li><strong>On the section \u201chttps?:\/\/(www.)?\u201d select the domain name from the drop-down.\u00a0<br \/><br \/><img decoding=\"async\" class=\"alignnone size-full wp-image-6100\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-select-domain.png\" alt=\"\" width=\"662\" height=\"152\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-select-domain.png 662w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-select-domain-300x69.png 300w\" sizes=\"(max-width: 662px) 100vw, 662px\" \/><br \/><br \/><\/strong><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"6\">\r\n<li><strong>Under the section \u201cRedirects to,\u201d enter your website&#8217;s URL.\u00a0<br \/><br \/><img decoding=\"async\" class=\"alignnone size-full wp-image-6101\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-to.png\" alt=\"\" width=\"681\" height=\"78\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-to.png 681w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-to-300x34.png 300w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><br \/><br \/><\/strong><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"7\">\r\n<li><strong>On the section \u201cwww. Redirection:\u201d choose \u201cRedirect with or without www. Selected.\u201d<br \/><br \/><img decoding=\"async\" class=\"alignnone size-full wp-image-6102\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-with-or-without-www.png\" alt=\"\" width=\"659\" height=\"103\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-with-or-without-www.png 659w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-with-or-without-www-300x47.png 300w\" sizes=\"(max-width: 659px) 100vw, 659px\" \/><br \/><br \/><\/strong>\r\n<ul>\r\n<li>When this option is selected, whenever a user visits your website, SSL via the \u201chttps:\/\/\u201d protocol will be served to the visitor.\u00a0<\/li>\r\n<li>Whether the website visitor uses \u201c<a href=\"http:\/\/www.yourdomain.com\" rel=\"nofollow noopener\" target=\"_blank\">www.yourdomain.com<\/a>\u201d or \u201cyourdomain.com,\u201d they will still be directed to the SSL or \u201chttps:\/\/\u201d version of your website.\u00a0<br \/><br \/><\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"8\">\r\n<li><strong>Check the box for \u201cWild Card Redirect.\u201d<br \/><br \/><img decoding=\"async\" class=\"alignnone size-full wp-image-6103\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-wild-card.png\" alt=\"\" width=\"656\" height=\"90\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-wild-card.png 656w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-enforce-https_redirects-wild-card-300x41.png 300w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><br \/><br \/><\/strong>\r\n<ul>\r\n<li>This option will ensure that all of the subdomains and files under your domain will use SSL or \u201chttps:\/\/\u201d.<br \/><br \/><\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"9\">\r\n<li><strong>Click \u201cAdd.\u201d<\/strong>\r\n<ul>\r\n<li>Clicking \u201cAdd\u201d saves your changes, so please don\u2019t forget this step!<br \/><br \/><\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"10\">\r\n<li><strong>There you have it, your domains and websites are now secure!\u00a0<\/strong><\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>\r\n<h2>Alternative method in enforcing HTTPS via cPanel<\/h2>\r\n<ol>\r\n<li><strong>Login to cPanel<\/strong><br \/><img decoding=\"async\" class=\"alignnone size-full wp-image-7565\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-login.png\" alt=\"cpanel login\" width=\"270\" height=\"274\" \/><br \/><br \/><\/li>\r\n<li><strong>Click on &#8220;Domains&#8221;<br \/><img decoding=\"async\" class=\"alignnone wp-image-7567 size-full\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-dashboard-domain-1.png\" alt=\"cpanel-dashboard-domain\" width=\"764\" height=\"131\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-dashboard-domain-1.png 764w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-dashboard-domain-1-300x51.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/><\/strong><br \/><br \/><\/li>\r\n<li><strong>Toggle the button for your domain to enable &#8220;Force HTTPS Redirect&#8221;<br \/><img decoding=\"async\" class=\"alignnone size-full wp-image-7568\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/force-https.png\" alt=\"force https\" width=\"132\" height=\"72\" \/><br \/><\/strong><\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>\r\n<h2>Alternative method in enforcing HTTPS using .htaccess via <a href=\"https:\/\/www.cldy.com\/support\/help\/how-to-upload-source-code-via-file-manager\/\">file manager<\/a><\/h2>\r\n<p>Replace the domain name with your domain name, and add the code to the first line of your .htaccess file<\/p>\r\n<blockquote>\r\n<p>RewriteEngine On<br \/>RewriteCond %{SERVER_PORT} 80<br \/>RewriteRule ^(.*)$ https:\/\/replacewithyourdomain.com\/$1 [R,L]<\/p>\r\n<\/blockquote>\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>After knowing the functions of redirecting a domain, as well as the steps on \u201cHow to Redirect a Domain to Another Domain?\u201d it\u2019s time to learn how to enforce HTTPS on a domain.\u00a0 Understanding https Before we go on to the process of enforcing HTTPS onto your domain, though, we\u2019ll give you the basics of [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[47,31],"doc_tag":[],"class_list":["post-5088","docs","type-docs","status-publish","hentry","doc_category-cpanel","doc_category-web-hosting"],"year_month":"2026-06","word_count":767,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"cldy","author_nicename":"loriecldy","author_url":"https:\/\/www.cldy.com\/support\/author\/loriecldy\/"},"doc_category_info":[{"term_name":"cPanel","term_url":"https:\/\/www.cldy.com\/support\/help-category\/cpanel\/"},{"term_name":"Web Hosting","term_url":"https:\/\/www.cldy.com\/support\/help-category\/web-hosting\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/5088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/comments?post=5088"}],"version-history":[{"count":13,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/5088\/revisions"}],"predecessor-version":[{"id":7945,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/5088\/revisions\/7945"}],"wp:attachment":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/media?parent=5088"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/doc_category?post=5088"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/doc_tag?post=5088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}