title: htaccess rewrite url remove subdirectory
body: <p>I'm trying to rewrite </p>
  
  <p><code>http://www.example.com/directory/folder/*</code></p>
  
  <p>to </p>
  
  <p><code>http://www.example.com/directory/*</code></p>
  
  <p>the htaccess file is in <code>directory</code></p>
  
  <p>this is my .htaccess file :</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /directory/
  RewriteRule ^(.*)$ folder/$1 [L]
  </code></pre>
  
  <p>Any help would be much appreciated.</p>