Rewriting an URL to become a query string
<p>I'm trying to rewrite URLs such as</p>

<pre><code>/product/16/var1/value1/var2/value2...
</code></pre>

<p>to this</p>

<pre><code>index.php?page=product&amp;id=16&amp;var1=value1&amp;var2=value2...
</code></pre>

<p>In other words, I would like to have a "main parameter" translated to an id (and I can do this), but I would also like to have, from that point on, couples of "directories" translated <strong>recursively</strong> to key-value pairs. </p>

<p>Is this possible with Apache mod_rewrite?</p>