title: http to https into subfolder (.htaccess)
body: <p>I have a Wordpress running on an Apache Server. Now I want to configure the following using .htaccess:</p>
  
  <ul>
  <li>Force http to https</li>
  <li>Redirect requests from (www.)domain.com to domain.com/domaincom/web</li>
  </ul>
  
  <p>So if a user types: <code>http://www.domain.com</code> he will be directed to <code>https://domain.com/domaincom/web</code> but in the browser navigation he will see <code>https://domain.com</code>.</p>
  
  <p>I already have the following:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{HTTP_HOST} ^(www\.)?domain.com [NC]
  RewriteCond %{SERVER_PORT} 80
  RewriteCond %{HTTPS} =off
  RewriteRule ^ https://%{HTTP_HOST}/domaincom/web/%{REQUEST_URI} [QSA,L,R=301]
  </code></pre>
  
  <p>But this does not replace the URL. Can you help me?</p>