Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

https redirect fromm root domain to www subdomain error

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>