2021-05-05 htaccess で http から https にリダイレクトする方法 その他 htaccess で http から https にリダイレクトする方法 下記を.htaccessに記述する # http → https リダイレクトRewriteEngine onRewriteCond %{HTTPS} offRewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]