通常、http→httpsのリダイレクトはhtaccessなりapacheのconfなりでこう書く。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
しかしLB配下にサーバが居ると無限ループが発生する。
こんな感じだろうか(ちょっと自信ないけど)
LB(http)→サーバ(httpなのでリダイレクト→LBへ)→LB(http)→サーバ(httpなのでry
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !=https #←こいつ追記
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
これで解決。
おわり。