From 015e9093a1030e1bc6774e01e3ec6e04e52b94af Mon Sep 17 00:00:00 2001 From: Wes Cossick Date: Wed, 27 Jan 2016 11:24:37 -0600 Subject: [PATCH] Force SSL --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 9ca56a5..4ee8071 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,9 @@ if(window.location.href.indexOf("nextstepwebs.github.io") !== -1) { window.location.href = "https://simplemde.com/"; } + + if(window.location.protocol != "https:") + window.location.href = "https:"+window.location.href.substring(window.location.protocol.length);