title: .htaccess redirecting submain to a folder
body: <p>Does anyone can help me to correct this code? I have a subdomain that point to the root domain and I need to point it to a folder, this code is doing the job but fails when you try to use a folder on the subdomain, when I enter <code>teste.edirpedro.com.br/pasta</code> the server change the url to <code>teste.edirpedro.com.br/teste/pasta</code>. What is wrong here?</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /
  
  RewriteCond %{HTTP_HOST} ^(www\.)?teste\.edirpedro\.com\.br$ [NC]
  RewriteCond %{REQUEST_URI} !^/teste/
  RewriteRule ^(.*)$ /teste/$1
  </code></pre>