title: set multi language
body: <p>I'm trying to make a mod_rewrite which can set the language</p>
  
  <p>the rewrite:</p>
  
  <pre><code>www.domain.com/da/page.php =&gt; www.domain.com/page.php?set_lang=da
  </code></pre>
  
  <p>So far I have comed up with this:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST}        domain\.com$ [NC]
  RewriteCond %{REQUEST_URI}      ^/(da|en)/(.*)$ [NC]
  RewriteRule ^(.*)$              /%2?set_lang=%1 [L]
  </code></pre>
  
  <p>but I can't figure out how you can send get vars with it too?</p>
  
  <p>like this:</p>
  
  <pre><code>www.domain.com/da/page.php?cat=black&amp;cow=ugly =&gt; www.domain.com/page.php?set_lang=da&amp;cat=black&amp;cow=ugly
  </code></pre>