title: How to redirect using .htaccess?
body: <p>I need my site to redirect from this url:</p>
  
  <pre><code>mysite.com/old/dir/param1/param2/...
  </code></pre>
  
  <p>to</p>
  
  <pre><code>mysite.com/dir/param1/param2/...
  </code></pre>
  
  <p>I need to keep the params, just remove the "old" in the url.</p>
  
  <p>How can I add this rule to my .htaccess?</p>
  
  <p>Thanks!!!</p>
  
  <p>Here's my .htaccess:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
  
  RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
  
      RewriteRule ^old/dir/(.*) mysite.com/dir/$1 [R=301,L]
  &lt;/IfModule&gt;
  </code></pre>