title: Htaccess Redirect from subdirectory to root
body: <p>I'm looking for a htaccess code to redirect my url's like this :</p>
  
  <pre><code>http://01.mydomain.com/subdir/xyz [OR]
  http://www.01.mydomain.com/subdir/xyz [OR]
  http://02.mydomain.com/subdir/xyz [OR]
  http://www.02.mydomain.com/subdir/xyz
  TO : http://www .mydomain.com/xyz
  </code></pre>
  
  <p>and in this case <code>xyz</code> is dynamic and could be any value. and <code>subdir</code> is constant</p>