title: htaccess rewrite condition
body: <p>I want a htaccess modrewrite rule to redirect my whole site to a new domain but except a folder. Such as, my site is www.mydomain.in and i want to redirect it www.mydomain.com but, if url is www.domain.com/new_folder then it should not to be redirect, stay on this site.</p>
  
  <p>My htaccess is here</p>
  
  <pre><code>   RewriteCond %{REQUEST_URI} !^(/users/)$
     RewriteCond %{HTTP_HOST} ^mydomain.in$ [OR] 
     RewriteCond %{HTTP_HOST} ^www.mydomain.in$
     rewriterule ^(.*)$ http://mydomain.com/$1 [R=301,L]
  </code></pre>
  
  <p>This is not working. If i enter www.mydomain.in/users/ then it goes to www.mydomain.com/users/</p>
  
  <p>Can anybody help me out?</p>