title: How do you make .htaccess pass all GET parameters without knowing what they are named?
body: <p>I am working on a CMS that involves custom user pages. I have a hierarchy with three levels set up, and it works pretty well. It's got a .htaccess that makes the URLs friendlier, too:</p>
  
  <pre><code>RewriteRule ^([A-Za-z0-9]+).html /content.php?page=$1 [L]
  RewriteRule ^([A-Za-z0-9]+)/([A-Za-z0-9]+).html /content.php?page=$2 [L]
  RewriteRule ^([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9]+).html /content.php?page=$3 [L]
  </code></pre>
  
  <p>That code works just fine.</p>
  
  <p>Another feature that I have is adding custom php page, in case I need to add something more powerful (like make a contact form that gets email addresses from a database).</p>
  
  <p>So my question is how could I modify (or add to) the .htaccess to make all of the GET parameters passed to the PHP page. For example, to use the contact page example, if the user goes to <a href="http://www.mysite.com/contact.html?name=someuser">http://www.mysite.com/contact.html?name=someuser</a>, I want the .htaccess to rewrite it as content.php?page=contact&amp;name=someuser, but without specifically telling it to look for 'name' as the parameter name. I would also like it to work with as many parameters as possible.</p>
  
  <p>I know this is a big (and hopefully not confusing) request, but is it possible? Or at least parts of it? Thanks!</p>