title: How can I match query string variables with mod_rewrite?
body: <p>Suppose I have URLs with query string parameters like these:</p>
  
  <pre><code>/index.php?book=DesignPatterns&amp;page=139
  /index.php?book=Refactoring&amp;page=285
  </code></pre>
  
  <p>Using <a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html" rel="noreferrer">mod_rewrite</a>, how can I redirect them to SES URLs like these?</p>
  
  <pre><code>/DesignPatterns/139
  /Refactoring/285
  </code></pre>