title: .htaccess rewrite to parent when parameter is given
body: <p>I have a problem with a rewriterule in my .htaccess, I would like to redirect like this:</p>
  
  <p><strong>www.mywebsite.com/category?p=2</strong></p>
  
  <p>to </p>
  
  <p><strong>www.mywebsite.com/category</strong></p>
  
  <p>where category is variable.</p>
  
  <p>I have my rewrite engine on and other redirects are working fine. This is what what I got so far:</p>
  
  <pre><code>RewriteRule ^/([a-z_\/]*)\?? /$1 [R=301,L]
  </code></pre>
  
  <p>What is the best way to accomplish this?</p>