replace to www.bazel.io?

http://bazel.io should redirect to https://bazel.io
https://bazel.io is now live, but http://bazel.io does not redirect to the https site.

.gitignore site/_includes/head.html
.gitignore site/_includes/head.html
diff --git a/.gitignore b/.gitignore
index e6d98586835c48..d5396a246de715 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,5 @@
 /bazel-testlogs
 /bazel.iml
 /output/
+/.sass-cache/
+/production/
diff --git a/site/_includes/head.html b/site/_includes/head.html
index 57bad5c9ee0246..7bd812a48032ec 100644
--- a/site/_includes/head.html
+++ b/site/_includes/head.html
@@ -8,7 +8,11 @@
       var current_url = window.location.href;
       var bad_url = new RegExp("^https?://bazelbuild.github.io/bazel/");
       if (bad_url.test(current_url)) {
-        window.location.replace(current_url.replace(bad_url, "http://bazel.io/"));
+        window.location.replace(current_url.replace(bad_url, "https://www.bazel.io/"));
+      }
+      var http_url = new RegExp("^http://(www\.)?bazel.io/");
+      if (http_url.test(current_url)) {
+        window.location.replace(current_url.replace(http_url, "https://www.bazel.io/"));
       }
     </script>
 
