From 2c889b93b85b495a93cc4bcfba36200e29bedb82 Mon Sep 17 00:00:00 2001 From: Jimako Date: Sun, 1 Sep 2024 21:16:20 +0200 Subject: [PATCH] Update class2.php Fix for sitedirection for the www version of the site --- class2.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/class2.php b/class2.php index 7163f6a027..161cf1328c 100755 --- a/class2.php +++ b/class2.php @@ -494,7 +494,8 @@ // -- ports do not match (http <==> https) // -- base domain does not match (case-insensitive) // -- NOT admin area - if (($urlport !== $PrefSitePort || stripos($PrefSiteBase, $urlbase) === false) && strpos(e_REQUEST_SELF, ADMINDIR) === false) + //if (($urlport !== $PrefSitePort || stripos($PrefSiteBase, $urlbase) === false) && strpos(e_REQUEST_SELF, ADMINDIR) === false) + if (($urlport !== $PrefSitePort || stripos($PrefSiteBase, $urlbase) === false || stripos($PrefSiteBase, $urlbase) === 4 ) && strpos(e_REQUEST_SELF, ADMINDIR) === false) { $aeSELF = explode('/', e_REQUEST_SELF, 4); $aeSELF[0] = $aPrefURL[0]; // Swap in correct type of query (http, https)