Welcome! Log In Create A New Profile

Advanced

https redirect fromm root domain to www subdomain error

Posted by ajamali1 
https redirect fromm root domain to www subdomain error
November 19, 2015 12:13PM
Hello all,

I am facing this issue with https, so i'll get right to it. I have done days of googling and nothing has worked for me, I am running the latest stable release of nginx and have my domain example.com. When i visit my site this is what happens:

I go to example.com -> redirects to https://example.com - I get the message from chrome saying "your connection is not private"
i go to www.example.com -> redirects to https://www.example.com - all good
i go to http://example.com -> redirects to https://example.com - I get the message from chrome saying "your connection is not private"
i go to http://www.example.com -> redirect to https://www.example.com - all good
i go to https://example.com -> doesnt redirect - I get the message from chrome saying "your connection is not private"
i go to https://www.example.com -> works, all good

my certificate is for "www.example.com" and I would like it to redirect to https://www.example.com no matter what the visitor types. Any help is appreciated.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready