Skip to content

Commit

Permalink
Update class2.php
Browse files Browse the repository at this point in the history
Fix for sitedirection for the www version of the site
  • Loading branch information
Jimmi08 authored Sep 1, 2024
1 parent 347246d commit 2c889b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion class2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c889b9

Please sign in to comment.