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

Revision #4 has been created by qiang on Oct 20, 2012, 11:16:21 AM with the memo:

Fixed typo
« previous (#3) next (#5) »

Changes

Title unchanged

URL management in 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