title: htaccess redirect exact match, exclude all query strings
body: <p>I'm trying to redirect <code>http://domain.com/search</code> to <code>http://domain.com</code> </p>
  
  <p>However I also have urls that looks like <code>http://domain.com/search?q=someword</code> </p>
  
  <p>At the moment I have :</p>
  
  <pre><code>redirectMatch 301 http://domain.com/search$ http://domain.com
  </code></pre>
  
  <p>And even though it redirects correctly the <code>http://domain.com/search</code> url, it also redirects any <code>http://domain.com/search?q=someword</code> url to <code>http://domain.com/?q=someword</code>, which I do not want.</p>
  
  <p>What am I doing wrong?</p>