Configure redirects for multiple hostnames
Add separate web redirects for the root domain and subdomains. Each redirect can choose its destination and redirect status, and whether to preserve the incoming path and query parameters.
See Create web redirects.