diff --git a/en/wiki/.htaccess b/en/wiki/.htaccess index 452de6a..fb793b4 100644 --- a/en/wiki/.htaccess +++ b/en/wiki/.htaccess @@ -2,6 +2,11 @@ RewriteEngine On # Define the rewrite base. RewriteBase /en/wiki + +# Auto redirect to https. +RewriteCond %{HTTPS} off +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + # Send requests without parameters to pmwiki.php. RewriteRule ^$ pmwiki.php [L] # Send requests for index.php to pmwiki.php. diff --git a/script/main.js b/script/main.js index 25ea2d5..16d224f 100644 --- a/script/main.js +++ b/script/main.js @@ -7,7 +7,7 @@ var userAction = function(str) if (typeof window.yaCounter25827098 !== "undefined") { console.log(g_language + "/" + str); - window.yaCounter25827098.hit("http://" + window.location.hostname + (g_language != "ru" ? "/" + g_language : "") + "/UserAction#" + str); + window.yaCounter25827098.hit(window.location.protocol + "//" + window.location.hostname + (g_language != "ru" ? "/" + g_language : "") + "/UserAction#" + str); } else if (!waitCounter) {