から.htaccess
かどうかを検出できませhttps
ん。
私が単に必要とするのは、私がヒットした場合です:
- " http://www.example.com " -- に移動 --> " http://www.pure-site.com "
- " https://www.example.com" --go --> " https://www.secure-site.com "
私の中で.htaccess
:
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ https://www.secure-site.com [R=301,L,NS]
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://www.pure-site.com [R=301,L,NS]
しかし、決して検出 RewriteCond %{HTTPS} on
できません。
負荷分散された AWS/EC2 インスタンスを使用しています。