HTTP Redirect Service Configuration
The configuration hierarchy for the HTTP Redirect service is illustrated in the diagram.

Service Profile Configuration
Syntax:
set access service-profile profile-name <profile-name> <attribute> <value>
| Attribute | Description |
|---|---|
<profile-name> |
Service profile name. |
<http-redirect> |
HTTP redirect service configuration. |
<url> |
HTTP redirect target URL. |
<acl> |
Subscriber ACL (filter) configuration. |
<ipv4-acl-in> |
IPv4 upstream ACL (ingress from subscriber). |
<ipv4-acl-out> |
IPv4 downstream ACL (egress to subscriber). |
<ipv6-acl-in> |
IPv6 upstream ACL (ingress from subscriber). |
<ipv6-acl-out> |
IPv6 downstream ACL (egress to subscriber). |
Example:
The following configuration specifies the HTTP redirect URL as: https://www.rtbrick.com. It associates the subscriber ACL with the profile. The ACL named 'redirect-acl-in' will determine which traffic is matched and redirected.
set access service-profile HTTP set access service-profile HTTP http-redirect url https://www.rtbrick.com set access service-profile HTTP acl ipv4-acl-in redirect-acl-in
The following example shows the HTTP redirect URL for the service profile.
supervisor@router: cfg> show config access service-profile HTTP
{
"rtbrick-config:service-profile": [
{
"profile-name": "HTTP",
"http-redirect": {
"url": "https://www.rtbrick.com"
},
"acl": {
"ipv4-acl-in": "redirect-acl-in"
}
}
]
}