mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-04 00:36:45 +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
|
RewriteEngine On
|
||||||
# Define the rewrite base.
|
# Define the rewrite base.
|
||||||
RewriteBase /en/wiki
|
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.
|
# Send requests without parameters to pmwiki.php.
|
||||||
RewriteRule ^$ pmwiki.php [L]
|
RewriteRule ^$ pmwiki.php [L]
|
||||||
# Send requests for index.php to pmwiki.php.
|
# Send requests for index.php to pmwiki.php.
|
||||||
|
@ -7,7 +7,7 @@ var userAction = function(str)
|
|||||||
if (typeof window.yaCounter25827098 !== "undefined")
|
if (typeof window.yaCounter25827098 !== "undefined")
|
||||||
{
|
{
|
||||||
console.log(g_language + "/" + str);
|
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)
|
else if (!waitCounter)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user