(function() { var _http = "http://"; var _https = "https://"; var _protocol = location.protocol; var _domain = location.hostname; var _pathname = location.pathname; var _search = location.search; var _anchor = location.hash; var _jsHost = (("https:" == _protocol) ? _https : _http); var _uri = _jsHost + _domain + _pathname + _search + _anchor; // 本番環境のみ適用 if ( _domain.match(/saikyobank.co.jp/)) { // // http アクセスは https アクセスへ if ("http:" == _protocol) { document.location.href = _https + _domain + _pathname + _search + _anchor; } } })();