Hi,
I am currently developing a website not using www on .test and the staging server is just the ip address, but for the the production server I want to use www.
Another scenario is when I would like to change a live site from non-www to www.
I find the instructions a little lacking on the www aspect, and I see that some have issues with SSL when server is provisioned with incorrect www settings, so I just though i’d check to make sure I had it right.
Is this the settings below all that is required? And then when I migrate the DB from the staging site i just make sure to replace the ip address with the domain name (should it be the www or the non-www in the db replace?):
wordpress_sites:
domain.org:
site_hosts:
- canonical: domain.org
redirects:
- www.domain.org
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
repo: git@github.com:notechup/nncc-site.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: true
provider: letsencrypt
cache:
enabled: true
duration: 30s
env:
wp_env: production
wp_home: https://www.domain.org
wp_siteurl: https://www.domain.org/wp