mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-03 08:15:38 +00:00
Fix https in statistic. Added auto redirect to https for en/wiki
This commit is contained in:
parent
168f9d744e
commit
479282d0c1
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user