Skip to content

Commit

Permalink
https redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
HolzwegDev committed Nov 16, 2018
1 parent f95df23 commit 82e6276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/override/ezsiteaccess.php
Expand Up @@ -519,7 +519,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php

$host = $_SERVER["HTTP_HOST"];
$path = $_SERVER["REQUEST_URI"];
$redirectURI = "http://" . $host . "/" . $serversiteaccess . $path;
$redirectURI = "https://" . $host . "/" . $serversiteaccess . $path;



Expand All @@ -530,7 +530,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php

// If Browser Language is not available as subsiteaccess redirect to first subsiteaccess
$matchURI = $matchURIArray[0];
$redirectURI = "http://" . $host . "/" . $matchURI . $path;
$redirectURI = "https://" . $host . "/" . $matchURI . $path;
header("Location: $redirectURI");
eZExecution::cleanExit();
}
Expand Down

0 comments on commit 82e6276

Please sign in to comment.