I have purchased a site that used to have many subdomains like x.domain.com, y.domain.com, etc
I want to redirect ALL http and https traffic to any page of any subdomain (except www) to https://www.domain.com/
I know I could do it by setting up a new site in WordOps, with letsencrypt, and manually doing the redirects for each site, but that would take a long time (there is 20+ subdomains).
Is there an easier way to redirect them? I think the issue is that if you try and redirect a user from say https://x.domain.com to https://www.domain.com, unless you have a certificate installed on the server for x.domain.com then it will throw a warning to the user?
OR is this where wildcard cert can be handy? BUT I see that specific DNS providers are required to be able to use wildcard?
OR could a solution like this work: https://community.wordops.net/d/588-how-to-add-a-subdomain-to-existing-ssl-certificate/8 at least then I would not need to manually setup redirects for all the subdomains (but it might become an issue when I need to renew the SSL certs every 3 months?)?
Thanks!