How to .htaccess redirect all http to https

Use .Htaccess as below 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [NE,L,R=301]
</IfModule>

บทความนี้มีประโยชน์กับคุณหรือไม่ ?

 พิมพ์หัวข้อนี้