I have a website with two subdomain:
I would like to redirect othersubdomain.site.com to mainsubdomain.site.com/repertory with this config
wordpress_sites:
site:
site_hosts:
- canonical: mainsubdomain.site.com
- canonical: othersubdomain.site.com
local_path: ../site
repo: git@github.com:site.git
repo_subtree_path: site
branch: master
multisite:
enabled: false
ssl:
enabled: true
provider: letsencrypt
hsts_max_age: 31536000
hsts_include_subdomains: false
hsts_preload: true
cache:
enabled: true
The two domains use ssl and letsencrypt. I tested a lot of things but everytime the domain othersubdomain.site.com redirect to mainsubdomain.site.com. Even when I remove othersubdomain.site.com to the canonical list… I tested every 301 redirection possible in the nginx conf directly without success.
Any ideas ?