title: Remove variable from base URL with htaccess
body: <p>I've been trying to rewrite a URL such as</p>
  <blockquote>
  <p>www.somesite.com/?x=372</p>
  </blockquote>
  <p>into a url</p>
  <blockquote>
  <p>www.somesite.com/</p>
  </blockquote>
  <p>My current code does not seem to work</p>
  <blockquote>
  <p>RewriteEngine On</p>
  <p>RewriteCond %{QUERY_STRING} x=(.*)</p>
  <p>RewriteRule <a href="http://www.somesite.com/" rel="nofollow noreferrer">http://www.somesite.com/</a> [R=301,L]</p>
  </blockquote>
  <p>I've looked up countless ways of trying to do it with htaccess and still no success.</p>