RewriteEngine on
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
こちらの記述だと、リダイレクトループに。
RewiteCond %{SERVER_PORT} !443
Go to list of users who liked
More than 5 years have passed since last update.
RewriteEngine on
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
こちらの記述だと、リダイレクトループに。
RewiteCond %{SERVER_PORT} !443
Register as a new user and use Qiita more conveniently
Go to list of users who liked