title: Redirect subdomain request to subdirectory + https (using .htaccess)
body: <p>I've got some issues with a <code>.htaccess</code> that I just can't get to work. Hope someone could solve this one.</p>
  
  <p>I have a SSL certificate on the <em>www.-domain</em> on an <em>Apache</em> server. I want all <code>http://subdomain.domain.com</code> requests on a specified list of <em>subdomains</em> to redirect to <code>https://www.domain.com/subdomain</code>.</p>
  
  <p>The second problem is I don't have a <em>wildcard certificate</em> that works on non-www. requests, requests to <code>https://subdomain.domain.com</code> will result in an <strong>"Untrusted Connection"</strong> alert. So this also has to be solved, but maybe it requires another type of redirect?</p>
  
  <p>What conditions and rules could achieve these two requirements using <code>.htaccess</code>?</p>