Commit 0404d947 authored by Caner Candan's avatar Caner Candan

* added a script to redirect http request to https

parent 0abb0ec7
......@@ -7,6 +7,7 @@ email: "caner@candan.fr"
copyright_name: "Forge'it"
description: "Forge'it Blog"
baseurl: ""
domain: "blog.4ge.it"
url: "https://blog.4ge.it"
# Author info
......
......@@ -30,6 +30,13 @@
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
var host = "{{ site.domain }}";
if ((host == window.location.host) && (window.location.protocol != 'https:')) {
window.location = window.location.toString().replace(/^http:/, "https:");
}
</script>
{% feed_meta %}
</head>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment