キャンペーンなどで告知したURLが「http」になってしまうことが
コミュニケーションロスで発生する。
セキュアサイトに見せるために強制的に「https」に切り替えたい
ときは、
if( !$_SERVER['HTTPS'] ) {
header(“location: “.’https://’ .$_SERVER['HTTP_HOST'] .$_SERVER['REQUEST_URI']);
}
とすれば良い。
.htaccessでも可能だとは思うが。
これもそのうち追加アップしよ。携帯3キャリア対応も一緒に・・・
No comments yet. You should be kind and add one!
By submitting a comment you grant typista a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.