title: apache url rewrite - change parameter name
body: <p>How can I use apache rewrite to change this:</p>
  
  <pre><code>http://server/info/BRUCE?eia=A25&amp;ref=187&amp;.x=8&amp;.y=2
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>http://server/info/BRUCE?eia=A25&amp;ref=187&amp;x=8&amp;y=2
  </code></pre>
  
  <p>The only difference being that:</p>
  
  <ul>
  <li>".x" gets converted to "x"</li>
  <li>".y" gets converted to "y"</li>
  </ul>
  
  <p>I've tried the following but no luck:</p>
  
  <pre><code>RewriteCond %{QUERY_STRING} (.*(?:^|&amp;))\.x=((?:&amp;|$).*)
  RewriteRule /path /path?%1x=%2
  </code></pre>