title: How can I filter URL in htaccess file?
body: <p>How to redirect urls like </p>
  
  <pre><code>www.domain.com/pageX?yyyy 
  </code></pre>
  
  <p>To </p>
  
  <pre><code>www.domain.com/pageX
  </code></pre>
  
  <p>in htaccess.</p>
  
  <p>So far I'm checking if the query string contains '?' but don't know how to take only the first part of the query string.</p>
  
  <pre><code>RewriteCond %{QUERY_STRING} .
  </code></pre>
  
  <p>Thanks</p>