htaccess で http から https にリダイレクトする


FTP工具で .htaccess に以下のコードを追加してください。

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

そしてエラーを防ぐため、これらのコードも追加してください。

RewriteOptions inherit   
RewriteEngine on   
Header set content-Security-Policy: upgrade-insecure-requests