htaccess
1 RewriteEngine On 2 RewriteCond %{HTTPS} off 3 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] 4 5 RewriteCond %{HTTPS} !=on 6 RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] 7 RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
現在
http://www.hoge.com → https://hoge.com
OKですが
https://www.hoge.com → https://hoge.com
はできていません。
どうすればよいでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/09/30 04:13