Everything but https://www.host.com to https://host.com works:
- host.com --> https://host.com
- www.host.com --> https://host.com
- https://host.com --> https://host.com
- https://www.host.com --> ? error
My DNS Records are like this:
- Type: A Record
- Host: @
- Value: 111.222.333.444
- Type: CNAME Record
- Host: www
- Value: host.com.
- Type: URL Redirect Record - unmasked
- Host: @
- Value: http://host.com
- Type: URL Redirect Record - unmasked
- Host: www
- Value: http://host.com
Along with some MX records. This DNS is on Namecheap so I think URL Redirect Record is a 301 Permanent Redirect.
Also, now after running the URL Redirect Records, nslookup host.com returns two different IP addresses.
What controls that redirection, from https://www to https://non-www?
On Ubuntu 16, DigitalOcean Droplet, with SSL setup via certbot.