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.
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.