Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirect Domain & Sub-domain to HTTPS

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'.

like image 475
sutro Avatar asked Mar 13 '26 20:03

sutro


1 Answers

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.

like image 197
nickedeye Avatar answered Mar 16 '26 15:03

nickedeye