title: remove dynamic part of url .htaccess
body: <p>I need to remove the dynamic part of a url:</p>
  
  <pre><code>example.com/pagename/?btag=a_233b_230c_&amp;affid=201
  </code></pre>
  
  <p>so remove everything after and including "?"</p>
  
  <p>But I don't want this rule to apply to this directory: </p>
  
  <pre><code>example.com/wp-content/?attr=1345
  </code></pre>
  
  <p>Is it possible to do this with .htaccess?</p>
  
  <p>Thanks, any help is appreciated
  Jon</p>