The url command configures a redirect URL or pushed URL.
The undo url command cancels a redirect URL or pushed URL.
By default, no redirect URL or pushed URL is configured.
Parameter |
Description |
Value |
---|---|---|
url-string |
Specifies a redirect URL or pushed URL. |
The value is a string of 1 to 247 case-sensitive characters without spaces. |
push-only |
Specifies the URL only as a pushed URL. |
- |
redirect-only |
Specifies the URL only as a redirect URL. |
- |
Usage Scenario
After a URL template is created using the url-template name command, you can run this command to configure the redirect URL or pushed URL. When a user without network access permission connects to the network, the Portal authentication device redirects the user to the specified URL for authentication. The difference between a redirect URL and a pushed URL is as follows:
Precautions
When you configure a URL on the device, question marks (?) are not supported. If a URL contains a question mark (?), you can run the parameter start-mark # command in the URL template view to replace the question mark (?) with a number sign (#).
If the push-only and redirect-only parameters are not specified, the configured URL is used as both a redirect URL and a pushed URL. You can configure pushed URL using the force-push command, or use the url-template command to bind a URL template to the Portal server template to configure redirect URL.