{"id":57,"date":"2008-08-12T02:19:57","date_gmt":"2008-08-12T02:19:57","guid":{"rendered":"http:\/\/masrifqi.web.id\/wp\/?p=57"},"modified":"2014-03-06T16:19:58","modified_gmt":"2014-03-06T09:19:58","slug":"redirect-otomatis-dari-http-ke-https","status":"publish","type":"post","link":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/2008\/08\/redirect-otomatis-dari-http-ke-https\/","title":{"rendered":"Redirect Otomatis dari http ke https"},"content":{"rendered":"<h4>Redirect Otomatis dari http ke https<\/h4>\n<p>Untuk masalah keamanan kita bisa memaksa user yang menggunakan http ke webserver kita untuk di redirect otomatis ke https, yaitu dengan menambahkan opsi berikut di httpd.conf<\/p>\n<pre>RewriteEngine on\r\nRewriteCond %{SERVER_PORT} =80\r\nRewriteRule ^(.*) https:\/\/%{SERVER_NAME}%{REQUEST_URI}<\/pre>\n<p><!--more--> Kemudian untuk mengaktifkan modul rewrite di apache pastikan juga apache telah load modulnya yaitu dengan baris berikut<\/p>\n<pre># rule-based rewriting engine to rewrite requested URLs on the fly\r\nLoadModule rewrite_module      \/usr\/lib\/apache\/modules\/mod_rewrite.so<\/pre>\n<p>setelah itu nyalakan ulang apachenya<\/p>\n<pre>apachectl restart<\/pre>\n<p>Setelah itu maka setiap koneksi yang diarahkan ke http maka akan secara otomatis di redirect menuju alamat  https, dan pastikan juga https telah berjalan dengan baik di webserver anda.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redirect Otomatis dari http ke https Untuk masalah keamanan kita bisa memaksa user yang menggunakan http ke webserver kita untuk di redirect otomatis ke https, yaitu dengan menambahkan opsi berikut di httpd.conf RewriteEngine on RewriteCond %{SERVER_PORT} =80 RewriteRule ^(.*) https:\/\/%{SERVER_NAME}%{REQUEST_URI}<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,10],"tags":[],"_links":{"self":[{"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/posts\/57"}],"collection":[{"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":1,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":749,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/posts\/57\/revisions\/749"}],"wp:attachment":[{"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/masrifqi.staff.ugm.ac.id\/index.php\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}