The url-parameter command sets parameters in a URL.
The undo url-parameter command deletes parameters in a URL.
By default, a URL does not carry any parameters.
url-parameter { redirect-url redirect-url-value | sysname sysname-value | user-ipaddress user-ipaddress-value | user-mac user-mac-value | login-url url-key url } *
undo url-parameter
Parameter |
Description |
Value |
---|---|---|
redirect-url redirect-url-value |
Specifies the original URL that a user accesses in the URL and sets the parameter name. |
The value is a string of 1 to 16 case-sensitive characters without spaces. |
user-ipaddress user-ipaddress-value |
Specifies the user IP address carried in the URL and sets the parameter name. |
The value is a string of 1 to 16 case-sensitive characters without spaces. |
sysname sysname-value |
Specifies the device system name carried in the URL and sets the parameter name. |
The value is a string of 1 to 16 case-sensitive characters without spaces. |
user-mac user-mac-value |
Specifies the user MAC address carried in the URL and sets the parameter name. |
The value is a string of 1 to 16 case-sensitive characters without spaces. |
login-url url-key url |
Specifies the login URL of an access device.
|
|
After a URL template is created using the url-template name command and URL is configured using the url command, you can use the url-parameter command to set the parameters in the URL. When a user accesses the Portal server according to the URL, the Portal server obtains user terminal information through the parameters in the URL. The Portal server then provides the corresponding web authentication page for the user according to user terminal information.
In addition, when users are redirected to a website rather than the Portal server according to the pushed URL, the website provides different web pages for the users according to user terminal information carried in the URL.