When we open example.com
(without HTTPS), the site loaded very well but when we open www.example.com
(without HTTPS) it opens "Welcome of nginX" but I do not need this, we want to open example.com
even if the URL is www.example.com
.
NOTE: our site has "HTTPS" and when we open example.com
, it will be redirected to https://example.com
.
NOTE: when we open https://www.example.com
, the site loaded well but when the URL is www.example.com
or https://www.example.com
it was not redirected.
We are using Ubuntu at AWS.