in-case anyone has issue like I did, I needed redirect to get my site to be just https://www.mydomain.com

I found this that helped to redirect all:  http://mydomain.com and http://www.mydomain.com and https://mydomain.com to https://www.mydomain.com

RewriteEngine On
# ensure www.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ensure https
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

hope this helps someone :)


Last update on May 17, 2018 by spirog.