The website is hosted on Apache.
SSL is in place and no problem with certificate. It is valid.
The issue is that Android Chrome Browser (Mobile Browser) does not detect SSL with the setting "Always use secure connections" turned on.
On inputting NAKED DOMAIN, "truesellerwebstore.com" It gives a message, "The connection to truesellerwebstore.com is not secure".(By the way chrome prefixes "http://" to all naked domains.)
I have tried various code combinations on .htaccess without any success.Current .htaccess is reproduced, kindly suggest.
The goal is to achieve https://www.trueseleerwebstore.com which ever the input url INCLUDING NAKED DOMAIN.
Tried various combinations on .htaccess without any success.
Following is the relevant extract.
ENFORCING SSL
<IfModule ssl_module>RewriteEngine OnRewriteCond %{HTTPS} !=onHeader always set Content-Security-Policy "upgrade-insecure-requests;"RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]</IfModule>
Enforcing HTTPS
RewriteEngine OnRewriteCond %{HTTPS} !=onRewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]Header always set Content-Security-Policy "upgrade-insecure-requests;" env=HTTPS
REDIRECT TO HTTPS
RewriteEngine OnRewriteCond %{HTTP_HOST} ^truesellerwebstore\.com$ [NC,OR]RewriteCond %{HTTP_HOST} ^www\.truesellerwebstore\.com$RewriteRule ^\(\.\*\)$ "https\:\/\/www\.truesellerwebstore\.com\/" [R=301,L]
REDIRECT HTTP TO HTTPS
RewriteEngine OnRewriteCond %{HTTP_HOST} ^http\:\/\/truesellerwebstore\.com\/$ [NC]RewriteRule ^\(\.\*\)$ "https\:\/\/www\.truesellerwebstore\.com\/" [R=301,L]
REDIRECT TO WWW
<IfModule mod_rewrite.c>RewriteEngine onRewriteCond %{HTTP_HOST} ^truesellerwebstore\.com [NC]RewriteRule ^(.*)$ https://www.truesellerwebstore.com/$1 [L,R=301]</IfModule>