ブログをHTTPS化。
2月22日から「はてなブログがHTTPSで配信できる仕組みの提供を開始した」との事なので、早速このブログ「中級プログラマの自宅でPHP ブログ」をHTTPS化した。
設定方法の説明には「ダッシュボードから設定画面にアクセスします」とあるが、HTTPS設定画面への移動の仕方がわかりづらい。
ログイン状態で以下のURLに直接アクセスする方が早い。
https://blog.hatena.ne.jp/my/config/url
ブログのトップページを記事一覧ページに変更していたが、そのJavaScriptのlocation.hrefもhttpsに変更する必要がある。
<script> if (!navigator.userAgent.match(/(Android|iPhone|iPod|iPod|Mobile|Windows Phone)/)) { if (location.href == 'https://ok2nd.hatenablog.com/') { location.href = 'https://ok2nd.hatenablog.com/archive'; } if (document.title == '記事一覧 - 中級プログラマの自宅でPHP ブログ') { document.title = '中級プログラマの自宅でPHP ブログ'; } } </script>