Commit 5a096195 authored by Pallav Agarwal's avatar Pallav Agarwal

Redirect to www version. Untested

parent 9d1e55a0
Pipeline #2720448 (#) passed with stage
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
......@@ -11,7 +11,7 @@ var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
window.location = window.location.toString().replace(/^http:/, "https:");
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
......
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