Redirect from a subdomain to the main domain

RewriteCond %{HTTP_HOST} ^teste\.redirectinfo\.com  [NC]
RewriteRule ^(.*) https://www.redirectinfo.com/$1 [L,R=301]