title: Redirecting anything in a subdirectory to an absolute directory path
body: <p>Using a RewriteRule I'm trying to redirect every url in a subdirectory to another subdirectory as an absolute path, trimming anything that came after the first directory.  Example:</p>
  
  <p>www.domain.com/store/search<br>
  www.domain.com/store/search?search=some_term</p>
  
  <p>etc.</p>
  
  <p>all need to go to </p>
  
  <p>www.domain.com/newdir/</p>
  
  <p>unfortunately the results I am seeing are like such:</p>
  
  <p>www.domain.com/store/newdir/<br>
  www.domain.com/store/newdir/?search=some_term</p>
  
  <p>and so on.  I am using this command currently:</p>
  
  <p>RewriteEngine on<br>
  RewriteRule search(.*) newdir/ [R=301,NC,L]</p>
  
  <p>How can I redirect anything in /store/search to just simply /newdir, trimming anything that comes after the word "search"?  Thanks.</p>