Problem
You are using one or more domain aliases (or parked domain), but you are getting an SSL warning “Your connection is not private” in your browser, when you are trying to view you SSL protected website.
Chrome: “Your connection is not private”
Microsoft Edge / Internet Explorer: “There is a problem with this website’s security certificate.”
Mozilla Firefox: "Your connection is not secure"
Safari: “Safari can’t verify the identity of the website”
Cause
This error can occur when you have an SSL certificate on your primary domain name and attempt to view an URL using a domain alias. The web browser is unable to match the website to the supplied SSL certificate and returns the error message.
Resolution
Find you .htaccess file in the public_html folder and enter the text below into your .htaccess file. Remember to edit the domain name to your own.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# ---------------------------------------------------------------------- # | Redirect all domains to "http://" to avoid SSL warning notices | # ---------------------------------------------------------------------- # If you have an SSL certificate on your primary domain name and attempt # to view a URL using a domain aliases your browser will return an SSL error. # as it is attempting to verify the site identity using the SSL cert assigned # to the main domain name. To fix this we redirect all domain aliases to the # non-SSL ">http://" version of the URL and follow-up by redirecting "https://" # version of the URL.
RewriteEngine On
RewriteBase / Rewritecond %{HTTP_HOST} !^www\.example\.com [NC] RewriteRule (.*) http://www.example.com/$1 [R=301,L] </ifmodule> # ---------------------------------------------------------------------- # | Forcing https: | # ----------------------------------------------------------------------
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] </ifmodule> |