how to redirect only main domain and not the subdomain to a different url

how to redirect only main domain and not the subdomain to a different url

Hi there,

Please check this documentation:

Thank you.