I pushed a website live last week (trellis/bedrock/sage) on DO.
the website is live, with SSL correctly active.
only today, the client told me that he has multiples domains, and he would like to redirect to the main domain.
so for example:
domain-x.com redirects to main-domain.com
domain-y.com redirects to main-domain.com
I read the docs, and from my understanding the only thing that I need to do, it is to list all the domains under redirects in /production/wordpress_sites.yml like this.
is it correct?
main-domain.com: site_hosts: - canonical: main-domain.com redirects: - www.main-domain.com - domain-x.com - domain-y.com - whateverdomain.co.uk - www.whateverdomain.co.uk
then I will need to update the DNS record A of these domains and point to the right IP for every host listed.
then I guess that the last thing, it will need to re-provision the production server.
are the above steps correct for my scope?
is there something that I need to be aware of, that I didn’t mention?