{"id":339,"date":"2020-11-16T19:39:39","date_gmt":"2020-11-16T19:39:39","guid":{"rendered":"https:\/\/lookouthost.com\/?p=339"},"modified":"2020-11-16T19:40:27","modified_gmt":"2020-11-16T19:40:27","slug":"how-to-make-website-open-with-https","status":"publish","type":"post","link":"https:\/\/lookouthost.com\/blog\/how-to-make-website-open-with-https\/","title":{"rendered":"How to make website open with https?"},"content":{"rendered":"<p>To force the HTTPS connection on a website you can create a file <strong>.htaccess<\/strong>&nbsp;(with dot) in your main root directory and use following code inside the file<\/p><pre class=\"wp-block-code\"><code>RewriteEngine On\r\nRewriteCond %{HTTPS} off\r\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} &#91;L,R=301]<\/code><\/pre><p>This works on Apache and LiteSpeed servers. The .htaccess files tells the server to open your website with https extension which will make the ssl lockpad visible on your website. The SSL certificate must be installed on your server first in order for this to work properly. Check if your website has SSL certificate properly installed using this website<\/p><p><a href=\"https:\/\/www.sslshopper.com\/ssl-checker.html\">https:\/\/www.sslshopper.com\/ssl-checker.html<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>To force the HTTPS connection on a website you can create a file .htaccess&nbsp;(with dot) in your main root directory and use following code inside the file This works on Apache and LiteSpeed servers. The .htaccess files tells the server to open your website with https extension which will make the ssl lockpad visible on your website. The SSL certificate must be installed on your server first in order for this to work properly. Check if your website has SSL certificate properly installed using this website https:\/\/www.sslshopper.com\/ssl-checker.html<\/p>\n","protected":false},"author":1,"featured_media":340,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[],"class_list":["post-339","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-loh","category-whm-cpanel"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/comments?post=339"}],"version-history":[{"count":0,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/339\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/media\/340"}],"wp:attachment":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/media?parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/categories?post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/tags?post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}