title: 301 Redirect in htaccess for URLs having Parameter P
body: <p>I need to set 301 redirect in htaccess for URLs having parameter P. One example URL is
  <code>http://www.price4india.co.in/vivo-x20-plus-ud-price-in-india-scanner-feature-real.html?p=1028</code>
  to
  <code>http://www.price4india.co.in/vivo-x20-plus-ud-price-in-india-scanner-feature-real.html</code></p>
  <p>After redirect everything after .html shall get removed and the value after P=...... can be any numerical value. So far I have tried below query but it is not working. Any suggestion please...</p>
  <pre><code>RewriteCond %{QUERY_STRING} ^p(&amp;|$) [NC]
  RewriteRule ^ %{REQUEST_URI}? [R=301,L]
  </code></pre>