title: 301 Redirect for all pages to new site Except 1 directory
body: <p>Im trying to create a 301 redirect for all pages but one directory to a new site, but Im having trouble setting it up.</p>
  
  <p>This is basically what I need:</p>
  
  <pre><code>http://www.example.com/store =&gt; no redirects, users remain on http://www.example.com/store
  http://www.example.com/* =&gt; all other pages go to this url http://www.newdomain.com/
  
  AKA
  
  http://www.example.com/apple =&gt; http://www.newdomain.com/
  http://www.example.com/pie =&gt; http://www.newdomain.com/
  http://www.example.com/foo/bar =&gt; http://www.newdomain.com/
  </code></pre>
  
  <p>I tried this method: </p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_URI}!^/store/
  RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
  </code></pre>
  
  <p>But when I go to <a href="http://www.example.com/store">http://www.example.com/store</a> it takes me to <a href="http://www.newdomain.com/store">http://www.newdomain.com/store</a></p>
  
  <p>Basically I need the directory /store to remain on the old domain. Can anyone help? Not to experienced with .htaccess rules...</p>