{"id":1346,"date":"2022-03-03T15:25:45","date_gmt":"2022-03-03T08:25:45","guid":{"rendered":"https:\/\/www.whplus.com\/blog\/?p=1346"},"modified":"2022-03-03T15:25:45","modified_gmt":"2022-03-03T08:25:45","slug":"mengarahkan-akses-https-menggunakan-htaccess","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2022\/03\/03\/mengarahkan-akses-https-menggunakan-htaccess.html","title":{"rendered":"Mengarahkan akses https menggunakan .htaccess"},"content":{"rendered":"<p>Jika website anda sudah terpasang sertifikat SSL dan anda ingin ketika website diakses menggunakan http biasa secara otomatis akan terhubung ke https maka anda bisa menggunakan setting redirect melalui .htaccess sebagai berikut:<!--more--><\/p>\n<p>1. Login ke  panel hosting anda (cpanel atau directadmin)<br \/>\n2. Buka menu File Manager<br \/>\n3. Edit file .htaccess pada folder public_html. Buat file baru dengan nama .htaccess bila belum ada<br \/>\n4. isi file .htaccess aadalah sebagai berikut<br \/>\n<code><br \/>\n#redirect http to https<br \/>\nRewriteEngine On<br \/>\nRewriteCond %{HTTPS} off<br \/>\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<br \/>\n<\/code><\/p>\n<p>Demikian cara mensetting redirect dari http ke https melalui .htaccess, semoga bermanfaat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jika website anda sudah terpasang sertifikat SSL dan anda ingin ketika website diakses menggunakan http biasa secara otomatis akan terhubung ke https maka anda bisa menggunakan setting redirect melalui .htaccess sebagai berikut:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1346","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=1346"}],"version-history":[{"count":1,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1346\/revisions"}],"predecessor-version":[{"id":1347,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1346\/revisions\/1347"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=1346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=1346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=1346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}