<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><font size="-1">On 24.04.17 12:04,
        Richard Sidlin wrote:<br>
      </font></div>
    <font size="-1">
    </font>
    <blockquote cite="mid:002801d2bce2$2e63f820$8b2be860$@sidlin.co.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Verdana",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><font size="-1">
      </font><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml>
<![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml>
<![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><font size="-1"><span
              style="font-family:"Verdana",sans-serif">Guys<o:p></o:p></span></font>
        </p>
        <font size="-1">
        </font>
        <p class="MsoNormal"><font size="-1"><span
              style="font-family:"Verdana",sans-serif"><o:p></o:p>A
              basic question if I may. I have a Wordpress site with some
              other software that is accessed on one of the sub folders.
              i.e. <a moz-do-not-send="true"
                href="http://www.wordpresssite.co.uk">www.wordpresssite.co.uk</a>
              and <a moz-do-not-send="true"
                href="http://www.wordpresssite.co.uk/race-entry">www.wordpresssite.co.uk/race-entry</a>
              .<o:p></o:p></span></font>
        </p>
        <font size="-1">
        </font>
        <p class="MsoNormal"><font size="-1"><span
              style="font-family:"Verdana",sans-serif">Now, I
              am about to add a LetsEncrypt SSL to the Wordpress site,
              that’s easy enough but what I want is anyone that types
              the standard www etc to be forced to <a
                moz-do-not-send="true" href="https://www">https://www</a>
              etc as I have a Stripe payment facility off the sub folder
              and that needs to be on https.</span></font>
        </p>
      </div>
    </blockquote>
    I did this by editing in <tt style=" background-color:#ffc;">/etc/httpd/conf/vhosts/siteXX.include</tt>
    and adding:<br>
    <pre style="white-space:nowrap; background-color:#ffc">
      RewriteEngine  On<br>
      RewriteCond    %{SERVER_PORT}  !^443$<br>
      #RewriteRule   ^(.*)$ <a class="moz-txt-link-freetext" href="https://%">https://%</a>{HTTP_HOST}/$1   [QSA,NC,R,L]<br>
      RewriteRule    ^(.*)$ <a class="moz-txt-link-freetext" href="https://%">https://%</a>{HTTP_HOST}$1    [QSA,NC,R,L]</pre>
    and restarting afterwards the Apache server.<br>
    <br>
    You might have to try out which one of the two RewriteRules (with or
    without <tt style=" background-color:#ffc;">/</tt> before <tt
      style=" background-color:#ffc;">$1</tt> works out better, mine is
    without.<br>
    <br>
    Best regards<br>
    <div class="moz-signature"><br>
      Meaulnes Legler
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td>~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~</td>
          </tr>
          <tr>
            <td>~ <tt> <a class="moz-txt-link-abbreviated" href="http://www.WaveWeb.ch">www.WaveWeb.ch</a> </tt> ~</td>
          </tr>
          <tr>
            <td>~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~</td>
          </tr>
          <tr>
            <td>~ <small><tt>Zurich, Switzerland</tt></small> ~
              <br>
              ~ <small><tt>tel: +41 44 2601660</tt></small> ~</td>
          </tr>
        </tbody>
      </table>
      <br>
    </div>
  </body>
</html>