Function redirectHttpToHttps() { var httpURL= window.location.hostname + window.location.pathname; var httpsURL=https:// + httpURL; window.location = httpsURL; } redirectHttpToHttps(); Chris De Jager