I have a site where I force https with SECURE_SSL_REDIRECT = True, so when I request the site I want the browser to redirect to https://www.mydomain.com. It almost works for every of these URLs:
- http://www.mydomain.com --> OK!
- http://mydomain.com --> OK!
- https://www.mydomain.com --> OK!
- https://mydomain.com --> NOT OK! (unable to connect)
In the DNS settings I have a A-record that redirects from mydomain.com to www.mydomain.com.
How can I make the last one work?