“Your connection is not private” when using Alias Domain (Parked domain).

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.

<ifmodule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 Rewritecond %{HTTP_HOST} !^www\.example\.com [NC]
 RewriteRule (.*) http://www.example.com/$1 [R=301,L]
</ifmodule>

# ----------------------------------------------------------------------
# | Forcing https:                                                  |
# ----------------------------------------------------------------------

# Redirect from the https to the "https"

<ifmodule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{HTTPS} !=on
 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</ifmodule>


  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

How to Create an Add-On Domain

This tutorial will guide you step by step on how to use and set up an Add-on domain. An Add-on...

How to Park a Domain

This tutorial will teach how to park a domain. A "Parked" domain shows the same content as the...

How to Set Up URL Redirects

This tutorial will teach you how to set up URL redirects. Redirects allow you to make a specific...

How to Create a Subdomain

This tutorial will teach you how to create a Subdomain. Subdomains are URLs for different...

Updating Your DNS at 123-reg.co.uk

As our new hosting client, if you have already purchased your domain name through 123-reg.co.uk,...