Blog Hosting, Server, Linux, Jaringan Komputer dan Internet 

Home Tutorial Mengarahkan http ke https menggunakan htaccess
formats

Mengarahkan http ke https menggunakan htaccess

Published on March 5, 2018, by in Tutorial.

Untuk mengarahkan http ke https kita gunakan .htaccess.

Langkah awal kita buat file .htaccess

Selanjutnya edit file .htaccess dan paste kode berikut :

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

Save dan jalankan websie anda.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.