Use Redirect rules to forward traffic from your alias domain to your other domain.
This example single redirect will redirect all requests for smallshop.example.com to a different hostname using HTTPS, keeping the original path and query string.
When incoming requests match
- Field: Hostname
- Operator: equals
- Value:
smallshop.example.com
If you are using the Expression Editor, enter the following expression:
(http.host eq "smallshop.example.com")
Then
- Type: Dynamic
- Expression:
concat("https://globalstore.example.net", http.request.uri.path) - Status code: 301
- Preserve query string: Enabled