title: How to make a better URL with .htaccess and multiple parameters?
body: <p>I have a very long a unfriendly URL an I'm looking to make SEO better for the site:</p>
  
  <p><a href="http://www.site.com/sub-site/index.php?page=nameofpage&amp;locale=en_EN" rel="nofollow noreferrer">http://www.site.com/sub-site/index.php?page=nameofpage&amp;locale=en_EN</a></p>
  
  <p>I would like to have this instead:
  http://
  www.site.com/sub-site/en/nameofpage</p>
  
  <p>all the URLS are hard coded in the links in the form of:</p>
  
  <pre><code>&lt;a href="index.php?page=nameofpage&amp;locale=en_EN"&gt;link&lt;/a&gt;
  </code></pre>
  
  <p>What is the best way to achieve this with mod-rewrite?
  I find it particularly difficult to achieve:</p>
  
  <ul>
  <li>combining both parameters, page and
  locale</li>
  <li>Turning ISO locales EN_en to en in the URL</li>
  <li>How should I write links? using the result URL or the index.php?page...
  controller scheme?</li>
  </ul>
  
  <hr>
  
  <p><strong>EDIT: 
  I'm going mad! I can't make it work!! Feel so stupid... but, Could anyone help me with the exact .htaccess file I need to pull this off?</strong> Thanks!</p>