Quantcast
Channel: apache – softelメモ
Viewing all articles
Browse latest Browse all 68

httpsを強制する(httpでアクセスされたらhttpsにリダイレクトする)

$
0
0

問題

http://~~~ でアクセスされたら https://~~~ にリダイレクトして、SSL通信を強制したいんだけど、どう設定したらいい?

答え

状況が簡単なら、単純にhttp → https は、以下の単純なRedirectでよいでしょう。

Redirect permanent / https://example.jp/

Viewing all articles
Browse latest Browse all 68

Trending Articles