title: Conditional .htaccess
body: <p>I'm sure there are other threads on similar topics around the web but I just can't get this working on my own website.</p>
  
  <p>The problem is that I have a multi-language website where the selected language is controlled through the URL. Right now the url is:</p>
  
  <pre><code>www.website.com/en/order
  </code></pre>
  
  <p>or whatever for English or </p>
  
  <pre><code>www.website.com/da/order
  </code></pre>
  
  <p>for Danish. This is all working just fine however I want to be able to use just the plain URL for the default language, for instance <code>www.website.com/order</code> where it'll then just select the default language (which I have defined in my php code).</p>
  
  <p>Is there any easy way to do this using .htaccess? Right now my .htaccess code is as follows:</p>
  
  <pre><code>RewriteRule ^(.*)\/(.*)$ index.php?lang=$1&amp;page=$2 [nc]
  </code></pre>
  
  <p>I've also tried having two rules:</p>
  
  <pre><code>RewriteRule ^(.*)\/(.*)$ index.php?lang=$1&amp;page=$2 [nc]
  RewriteRule ^(.*)$ index.php?page=$1 [nc]
  </code></pre>
  
  <p>But nothing works..</p>