< Home

redirect-mode

Function

The redirect-mode command configures the portal URL redirection mode.

Format

redirect-mode { 200ok | 302 }

Parameters

None

Views

Portal authentication template view

Default Level

2: Configuration level

Usage Guidelines

By default, the portal URL redirection mode is 200ok.

In portal authentication scenarios, when the portal URL redirection mode is set to 200ok, only the Internet access from a browser client can be redirected to the portal authentication page. The Internet access from browsers built in applications (such as QQ and WeChat) cannot be redirected to the portal authentication page. In such cases, you need to run the redirect-mode 302 command to set the portal URL redirection mode to 302, so that the Internet access from both browser clients and the browsers built in applications can be redirected to the portal authentication page.

Example

# Set the portal URL redirection mode to 302.

<sysname> system-view
[sysname] user-manage portal-template template1
[sysname-portal-template-template1] redirect-mode 302
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >