title: rewritemap for SEO and pretty URLs
body: <p>I am attempting to redirect &amp; rewrite some dynamic PHP URL's to pretty and SEO friendly URLs. I have manged to do this successfully through .htaccess with the following code:</p>
  
  <pre><code>RewriteCond %{QUERY_STRING} ^somevar=green&amp;nodescription=([a-zA-Z0-9_-]*)$
  RewriteRule (.*) /green\/%1\/? [L,R=301]
  
  RewriteRule ^green/([^/]*)/$ /script.php?somevar=green&amp;nodescription=$1&amp;rewrite=on [L]
  </code></pre>
  
  <p>This creates a <em>somewhat</em> pretty URL as follows:</p>
  
  <pre><code> http://www.mysite.com/green/aA43-/
  </code></pre>
  
  <p>As I say, this works absolutley fine. Apart from one thing. The parameter <code>nodescription</code> contains a non-descriptive random set of letters, numbers and other characters.</p>
  
  <p>I would like to rewrite the nodescription parameter to a more descriptive one. I understand that I can do this with a rewritemap through Apache. However, I have no experience at doing soemthing like this, and I'm not entirely sure where to start.</p>
  
  <p>Normally I would simply alter <code>script.php</code> so that it contains more descriptive parameters, but this time I have no control over the script; I am pulling it from another site using cURL.</p>
  
  <p>Can anybody give me an example of how to pull this off?</p>
  
  <p>Thanks!</p>
  
  <p>Matt</p>