Difference between #3 and #5 of
URL management for Websites with secure and nonsecure pages

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;
}
[...]
19 0
34 followers
Viewed: 59 084 times
Version: 1.1
Category: How-tos
Tags: URL
Written by: qiang
Last updated by: qiang
Created on: Oct 20, 2012
Last updated: 12 years ago
Update Article

Revisions

View all history