title: Hide Subfolder in URL with .htaccess without breaking other subdomains
body: <p>I am trying to keep my main domain structure from being too cluttered so I am parsing all of my domains into their own subfolder. So, what I am trying to do is when a user goes to <a href="http://mydomain.com" rel="nofollow">http://mydomain.com</a> they are actually sent to <a href="http://mydomain.com/sub-directory" rel="nofollow">http://mydomain.com/sub-directory</a></p>
  
  <p>This bit of code works:</p>
  
  <pre><code>#redirect to submain subdomain
  RewriteEngine On
  RewriteCond %{THE_REQUEST} ^GET\ /submain/
  RewriteRule ^submain/(.*) /$1 [L,R=301]
  RewriteRule !^submain/ submain%{REQUEST_URI} [L]
  </code></pre>
  
  <p>However it breaks all the other subdomains I have loaded into my main directory.</p>
  
  <p>Any ideas on how to fix this?</p>