Addon Domains Issue On Primary Domain With SSL
Hey guys, this is my first thread and I've just joined and did an introduction. I'm hoping I'm in the right section about this situation I have, otherwise, please move to the right section. I've tried to searched the forum but didn't found what I was looking for or if I missed it, pleased point me to the right thread that is existing already.
So, here's my situation and I haven't consulted this issue with my hosting provider as I wanted to know if there is something I can about this, and if things are beyond my technical skills, I will submitting ticket with my host.
I have a primary website hosted with SSL, and is working very well without any issues. However, all addon domains when accessed with https://addondomain.com/https:www//addondomain1.com, it can be accessed with the primary domain's homepage. Another bad news is that, one of the addon domains is indexed in Google when access through site:addondomain.com as https://addondomain.com
The only website that has SSL is the primary domain and none of the addon domains have SSL.
Searching online I've found a suggestion from justhost, which recommends using this in the .htaccess.
I've tried to put that inside the addon domain's .htaccess right at the very beginning of the .htaccess entry, but didn't solve the problem. Now, my question is; how and what can I do to prevent this from happening? Thanks in advance! :)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://www.domain.com [R=301,L]
I've tried to put that inside the addon domain's .htaccess right at the very beginning of the .htaccess entry, but didn't solve the problem. Now, my question is; how and what can I do to prevent this from happening? Thanks in advance! :)
-
Hello :) If the account is assigned a shared IP address, and a SSL certificate is installed on that IP address, then any secure request to a domain name on that IP address will load the contents of the domain name the certificate is installed for. This is by design. You can assign a dedicated IP address to each addon domain name if you don't want to install a SSL certificate for each addon domain name. Documentation on how to do this is at: Assigning Dedicated IPs to Subdomains Thank you. 0 -
Hi Michael, thanks for your reply. All domains are in one dedicated IP(host provided) and only one domain(primary domain) has SSL and all addon domains don't have any SSL and not planning of installing SSL for addon domains. Do I need a dedicated IP for the addon domains? Or, do I need a dedicated IP solely assigned to the primary domain with SSL and another dedicated IP for all the addon domains. I'm not sure if that is a possible option. I haven't consulted my host, yet. Do I have any other options? 0 -
You will need to assign a separate IP address for your addon domain names. Any secure request to a domain name on the primary domain's IP address will load the contents of the domain name the certificate is installed for regardless of if it's a shared IP address. Thank you. 0
Please sign in to leave a comment.
Comments
4 comments