Can I use “redirect.regex” and “redirect.replacement”? to redirect from mysite.com to my-site.com?

Can I use “redirect.regex” and “redirect.replacement”? to redirect from mysite.com to my-site.com?

I'm trying to redirect all traffic from mysite.com to my-site.com. I'd like to do this with Traefik, if possible.
    - traefik.frontend.redirect.regex=^https?://(?:www.)?.mysite.([a-z.]+)
    - traefik.frontend.redirect.replacement=https://www.my-site.$$1
    
Read more