Fix https in statistic. Added auto redirect to https for en/wiki

This commit is contained in:
Unick Soft 2019-04-28 10:42:15 +02:00
parent 168f9d744e
commit 479282d0c1
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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)
{