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 have an SSL certificate that is valid for but not it seems. If I use mod_rewrite or .htaccess to redirect from one to the other will this prevent browsers from displaying an invalid certificate security warning if someone tries to access

(I've tried redirection but still get the warning if I type directly into the address bar of my browser. I want to know if this is because the redirection isn't working or if the browser will display the warning anyway.)

I hope that makes sense.

share|improve this question
up vote 1 down vote accepted

You'll get the warning anyway because it's trying to make the secure connection even to give the redirect (https://www.mysite, regardless of what it returns). If you went to http://www.mysite and redirected to https://mysite there wouldn't be a popup.

share|improve this answer
Thanks! Much appreciated. – tamewhale Jun 2 '10 at 11:46

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.