{"id":380,"date":"2019-11-14T22:06:00","date_gmt":"2019-11-14T22:06:00","guid":{"rendered":"https:\/\/www.smarthost.eu\/blog\/?p=380"},"modified":"2022-08-30T07:31:26","modified_gmt":"2022-08-30T07:31:26","slug":"force-https-redirect","status":"publish","type":"post","link":"https:\/\/www.smarthost.au\/blog\/force-https-redirect","title":{"rendered":"Force HTTPS redirect"},"content":{"rendered":"\n<p> After cPanel version 80 update, there is a new feature added letting user to force a domain to HTTPS redirect (with SSL certificate) with just a few clicks.<\/p>\n\n\n\n<p> With this option it is possible for easy traffic redirection from unsafe HTTP to secure HTTPS thanks to your SSL certificate.<\/p>\n\n\n\n<p> To turn on automatic redirection:<\/p>\n\n\n\n<p>Log on to cPanel with this link (replace your-domain.eu with your domain address): https:\/\/your-domain.eu\/cpanel<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"403\" height=\"401\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/1.jpg\" alt=\"\" class=\"wp-image-381\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/1.jpg 403w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/1-300x300.jpg 300w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/1-150x150.jpg 150w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/figure><\/div>\n\n\n<p>In &#8220;Domains&#8221; category click &#8220;Domains&#8221; icon<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"140\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/2-1-1024x140.jpg\" alt=\"\" class=\"wp-image-382\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/2-1-1024x140.jpg 1024w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/2-1-300x41.jpg 300w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/2-1-768x105.jpg 768w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/2-1.jpg 1370w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>To force HTTPS redirection for your primary domain, you will need to force HTTPS redirection for a subdomain which is linked to your primary domain (it will show after hovering over the encircled question sign). If subdomains are not visible you will need to hover over the cog icon located in the top right corner and turn on the &lt;&#8220;Show subdomains&#8221;&gt; option.<br> Next, click on the &#8220;Force HTTPS Redirect&#8221; toggle to change the value.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"359\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/3-1-1024x359.jpg\" alt=\"\" class=\"wp-image-386\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/3-1-1024x359.jpg 1024w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/3-1-300x105.jpg 300w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/3-1-768x269.jpg 768w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2019\/12\/3-1.jpg 1436w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>Now you officially enabled HTTPS redirection. You can check your green lock icon in your browser:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"179\" height=\"27\" src=\"https:\/\/www.smarthost.eu\/blog\/wp-content\/uploads\/2019\/12\/4-1.jpg\" alt=\"\" class=\"wp-image-384\"\/><\/figure><\/div>\n\n\n<p>And that\u2019s how we can make our site safer with just a few clicks without direct influence in files like .htaccess or databases.<br> Thanks to that function we are sure that we won\u2019t make mistakes in configuration files and that our traffic will be secure.<\/p>\n\n\n\n<p>You should remember that this method is intended for CMS which don&#8217;t have a automated HTTPS redirection feature on the level of admin panel.<br> For example, WordPress has this functionality and the HTTPS redirection should be done from the WP Dashboard. Here is a guide for this kind of action:<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-wp-embed is-provider-luzne-porady-hostingowe wp-block-embed-luzne-porady-hostingowe is-provider-we-talk-about-hosting-unofficial\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"KJNdgh5wfo\"><a href=\"https:\/\/www.smarthost.eu\/blog\/turning-on-the-ssl-certificate-in-wordpress-guide\">Turning on the SSL certificate in WordPress &#8211; guide<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Turning on the SSL certificate in WordPress &#8211; guide&#8221; &#8212; we talk about hosting unofficial\" src=\"https:\/\/www.smarthost.eu\/blog\/turning-on-the-ssl-certificate-in-wordpress-guide\/embed#?secret=9OPbbk41FG#?secret=KJNdgh5wfo\" data-secret=\"KJNdgh5wfo\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>After cPanel version 80 update, there is a new feature added letting user to force a domain to HTTPS redirect (with SSL certificate) with just a few clicks. With this option it is possible for<a class=\"read-more\" href=\"https:\/\/www.smarthost.au\/blog\/force-https-redirect\">Continue reading<\/a><\/p>\n","protected":false},"author":16,"featured_media":385,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[151,177,42],"tags":[150,143,149,144,147,36,146,145,75,118,148],"class_list":["post-380","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-https","category-important","category-ssl-certificates","tag-change-to-https","tag-cpanel-version-80","tag-force-https","tag-http","tag-http-to-https-redirect","tag-https","tag-https-redirect","tag-redirect","tag-security","tag-ssl","tag-ssl-redirect"],"_links":{"self":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/comments?post=380"}],"version-history":[{"count":15,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/380\/revisions"}],"predecessor-version":[{"id":4828,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/380\/revisions\/4828"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media\/385"}],"wp:attachment":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media?parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/categories?post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/tags?post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}