Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I bought a SSL certificate for the domain I have other domains like, those I didn't buy a SSL certificate.

When I go to the page is showed directly OK, but if I go to, the browser shows the typical message "This Connection is Untrusted"..

When the user enter to I would like to redirect the user to in order to not showing the message "This connection is untrusted..".

For that, I have written this in my .htaccess:

RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} !^ [NC] 
RewriteRule (.*)$ [R=301,L]

but when I go to the browser still shows the message "This connection is untrusted...".

So what should I do to redirect my sites avoiding this message?



share|improve this question
up vote 2 down vote accepted

Give them an SSL certificate. Unfortunately, in order to open the connection and get the redirect information from the server, the browser and web server first have to establish an HTTP/SSL connection, which of course involves presenting the assigned certificate. There isn't really any way around this that I know of. At the very least, assign the "" certificate to the other domain names, and that way it's at least evident that they're legitimate.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.