For anyone who finds this via searches, this can now be done in Caddy with the http_redirect listener wrapper.
http_redirect