3

I am trying to redirect my domain and sub domain to https. I have subscribed to Wildcard SSL and made below modifications to htaccess file, as per this guide.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I am now seeing HTTPS 'Secure Connection' on my main domain. But on sub-domain, it is still showing 'Not Secure' although HTTPS is in the domain. enter image description here What changes do I do here to redirect my subdomain as well to https 'Secure Connection'.

sutro
  • 623
  • 6
  • 13

2 Answers2

1

Looks like there is a problem with your cert installation or signing, that is why it shows "Not Secure".

You may want to try to check if the cert is correctly installed using some checker tool:
Example. https://cryptoreport.websecurity.symantec.com/checker/

Or check with your cert and hosting provider for assistance to see if it is your cert installation or signing problem.

nickedeye
  • 154
  • 4
  • Thanks. For the main domain, the feedback received was "Self-signed certificate is installed". The main domain looks alright "Certificate is installed correctly". What should I do? – sutro Dec 26 '17 at 09:19
  • 1
    check with your cert and hosting provider for the correct steps to install your cert, or the correct settings to protect both your main and sub domains with your wildcard ssl. – nickedeye Dec 26 '17 at 09:29
0

You need to apply/check other .htaccess file(s) in your sub-domain(s) root directories. Example subdomain.yourmaindomain may be located at root/subdomain folder (need be checked - it's depended to your subdomain setting).

vietanhyt
  • 588
  • 3
  • 15