Since this is so common, seems this should be easy to do in
VirtualService, but having a hard time doing simple HTTPRedirect on non-www domain to www. Here’s what I’ve got (appropriate
Gateway is passing the traffic):
gateways: - example-gateway hosts: - example.net http: - match: - headers: host: regex: "^example.net" redirect: authority: www.example.net
Tried a couple of variations with match authority, but just can’t get the redirect to work. Where am I going wrong?