/** * 重定向 * @param string $sLocation 重定向地址 * @param bool $bPermanently 是否为永久重定向 */ public static function VSetRedirect($sLocation, $bPermanently = false) { $statusCode = $bPermanently ? 301 : 302; self::$s_iHttpCode = $statusCode; self::_VHeader('Location', $sLocation); }