< Home

portal redirect-302 enable

Function

The portal redirect-302 enable command enables redirection based on the status code 302 for Portal authentication.

The undo portal redirect-302 enable command disables redirection based on the status code 302 for Portal authentication.

By default, redirection based on the status code 302 is disabled for Portal authentication.

Format

portal redirect-302 enable

undo portal redirect-302 enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

HTTP status codes 200 and 302 correspond to different redirection modes. During redirection based on the status code 200 OK, the URL information is in the URL field of an HTTP packet. During redirection based on the status code 302, the URL information is in the Location field of an HTTP packet. By default, the device performs redirection based on the status code 200 OK. Some applications need to use redirection based on the status code 302. In this case, you can run this command to enable this function.

Precautions

After redirection based on the status code 302 is configured for Portal authentication, the portal redirect js enable configuration is invalidated.

Example

# Enable redirection based on the status code 302 for Portal authentication.

<HUAWEI> system-view
[HUAWEI] portal redirect-302 enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >