<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 12/12/2012 11:13 AM, Robert Fitzpatrick wrote:
    <blockquote cite="mid:50C8BB2B.8030204@webtent.org" type="cite">
      <pre wrap="">On 12/12/2012 11:35 AM, Michael Stauber wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">So if your certificate is for "<a class="moz-txt-link-abbreviated" href="http://www.vsite.com">www.vsite.com</a>", all you need to do is to
tick the checkbox for "Alias redirects to main site". That'll already do
all the redirection you want and anyone who visits an alias will be
redirected to the main site where the SSL certificate is active.
</pre>
      </blockquote>
      <pre wrap="">
Thanks Michael, understood. Yes, that redirection works fine after the
browser warning issued due to the naming, that is what we are trying to
avoid.

</pre>
    </blockquote>
    <small>We use this in a php script to switch from http to https.<br>
      This may or may not help<br>
      <br>
      <?php<br>
        if ( preg_match("/<a class="moz-txt-link-freetext" href="http:/">http:/</a>", $_SERVER["SCRIPT_URI"]))<br>
        {<br>
          if ( !preg_match("/:443\//", $_SERVER["SCRIPT_URI"]) )<br>
          {<br>
              header("Location: " . str_replace("http:", "https:",
      $_SERVER["SCRIPT_URI"]));<br>
          }<br>
        }<br>
      ?><br>
    </small><br>
  </body>
</html>