I am developing a site for a client and the setup is a little bit more complex than what I am used to. They bought various domain extensions to which .com is the canonical one.
wordpress_sites: example.com: site_hosts: - canonical: example.com redirects: - example.fr - www.example.fr - example.eu - www.example.eu - example.pt - www.example.pt local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root) repo: email@example.com:example/example.com.git # replace with your Git repo URL repo_subtree_path: site # relative path to your Bedrock/WP directory in your repo branch: master multisite: enabled: false ssl: enabled: false provider: letsencrypt cache: enabled: false
Do I really need to write these 6 redirects to handle all the cases?
Is it possible to use a regex such as
Or something similar?
I am not really sure I am doing it right, I would appreciate a quick feedbacks to point me in the right direction.