I have a SSL certificate for non www URL: https://domain.com
I know there are many similar question, but none of them seems to solve my problem. Here is what I am trying to do:
Problem:
1) http://www.domain.com -> https://domain.com **www to non www DONE**
2) http://domain.com -> https://domain.com **http to https DONE**
3) https://www.domain.com -> https://domain.com/ **NOT DONE**
- Getting ERROR ON Above URL number (3): Your connection is not private
So far, my .htaccess file looks like so:
# www to non www
RewriteCond %{HTTP_HOST} ^www\.domain\.com [NC]
RewriteRule (.*) https://domain.com/$1 [R=301,L]
# http to https
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# https://www to htttps://
Please note that above code of .htaccess is working fine for my first and second problem, Now I want to solve my third problem
Here are the solutions that I already tried: