.htaccess 102 B

1234
  1. RewriteEngine On
  2. RewriteCond %{HTTPS} !=on
  3. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]