'htaccess: redirect from specific full URL to another

I would like to redirect via htaccess, from:

https://subdomain.domain.com/my-content

to:

https://anothersubdomain.domain.com/my-content

Is that possible? I only seem to find working redirects with "my-content" parts, that are different from each other.

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source