Hướng dẫn cấu hình redirect http to https trên plesk
Redirect http to https for a domain in Plesk
Để cấu hình redirect http to https các bạn không cần thay đổi gì trên file .htaccess , mà chỉ cần vào Plesk cấu hình là ok.
Thêm vào dòng sau:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,QSA]
</IfModule>
Chúc bạn thành công,