Base de Conhecimento

Direct http ke https menggunakan .htaccess

Suporte > Base de Conhecimento > Hosting > Direct http ke https menggunakan .htaccess

Ingin otomatis direct akses dari http ke https, tambahkan string di bawah ini ke dalam file .htaccess pada directory root website anda.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]

jangan lupa untuk mengganti www.yoursite.com menjadi nama domain anda.

Esta resposta foi útil?
39 Utilizadores acharam útil 87 Votos

Leia também