htaccess rule for multilingual site (working on temporary site)
<p>That is my standard RewriteRule I'm using everywhere</p>

<pre><code>RewriteRule (.*)-(.*)-(.*)\.htm$ index.php?v=$1&amp;page=$2&amp;folder=$3
</code></pre>

<p>This convert my link: <code>mywebsite.com/index.php?v=parm1&amp;page=parm2&amp;folder=parm3</code> to <code>mywebsite.com/parm1-parm2-parm3.htm</code></p>

<p>Now I need to add language support (&amp;lang=pl) so the link will look like this: <code>mywebsite.com/pl/parm1-parm2-parm3.htm</code></p>

<p>This will have to also work on temporary address: <code>mywebsite.com/~website/</code></p>

<p>I know how to do just language (see below) without other parameters but don't know how to join those 2 rules together:</p>

<pre><code>RewriteRule ^(en|pl)/(.*)$ $2?lang=$1 [L,QSA]
</code></pre>

<p>EDIT: </p>

<p><code>mywebsite.com/</code> this should open home page in main <code>en</code> language</p>

<p><code>mywebsite.com/parm1-parm2-parm3.htm</code>  this should open any page in main <code>en</code> language</p>

<p><code>mywebsite.com/pl/</code> this should open home page in secondary language</p>

<p><code>mywebsite.com/pl/parm1-parm2-parm3.htm</code>  this should open any page in secondary language</p>