I have a site on trellis that needs to respond to both domain1.com and domain2.com (not redirect). What would be the best way to set this up? Placing 2 canonical domains in wordpress_sites.yml results in the latter redirecting to the first.
Let’s not get into the duplicate content/SEO discussion, as it just isn’t particularly relevant in this specific situation, though I understand the concerns.
The following is my wordpress_sites.yml file for reference:
wordpress_sites:
location1.com:
site_hosts:
- canonical: location1.com
redirects:
- www.location1.com
- canonical: location2.com
local_path: ../sites/location1.com
repo: 'git@bitbucket.org:location1.com.git'
branch: production
multisite:
enabled: false
ssl:
enabled: false
provider: letsencrypt
hsts_include_subdomains: false
cache:
enabled: false
Any input at all would be appreciated.