title: htaccess 301 redirect dynamic url
body: <p>I am moving my site to new domain. Need to redirect pages<br>
  from<br>
  old-site.com/oldpage.php?id=X<br>
  to<br>
  new-site.com/newpage-X<br>
  (X is number)  </p>
  
  <p>Why this rule does not work?  </p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^oldpage.php?id=(.*)$ http://new-site.com/newpage-$1 [R=301,L]
  </code></pre>