Changes
Title
changed
URL management infor Websites with secure and nonsecure pages
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
URL
Content
changed
[...]
$secureRoute = $this->isSecureRoute($route);
$sslRequest = $request->isSecureConnection;
if ($secureRoute !== $sslRequest) {
$hostInfo = $secureRoute ? $this->secureHostInfo : $this->hostInfo;
if ((strpos($hostInfo, 'https') === 0) xor $sslRequest) {
$request->redirect($hostInfo . DIRECTORY_SEPARATOR . $route$request->url, true, 301);
}
}
return $route;
}[...]