cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SSL Certificate in Ultimate Hosting; I don't want it for one of my three hosted domains.

I have ultimate hosting. I have SSL on two of the three domains. The third domain isn't on the SSL certificate.

 

I redirect through .htaccess with:

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

 

Consequently, the third domain returns a "Not Secure" warning, and "Your connection to this site is not secure."

How can I opt my third domain out of this redirect?

Thanks!

3 REPLIES 3
Employee

You'll need to make an .htaccess that calls out what domains you want redirected. Here's an example that might help.

 

RewriteEngine on
 
# Redirect all domains to use 'www.'
 
​RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
# Redirect ONLY specific domains to HTTPS
 
RewriteCond %{HTTP_HOST} ^(www\.)?(domain1.com|domain2.com|domain3.net)$
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Aparently : p without the space gets turned into an emoji

This is working well in redirecting everything to www.* as well as ensuring the two intended URLs go to https:

Unfortunately, the third domain is not redirecting to the non-https:, and I'm still getting the "Not Secure" warning.

Is it possible to add a redirect a specific domain ONLY to HTTP rather than (or in addition to) having the redirect of specific domains to HTTPS?