title: .htaccess redirection based on path
body: <p>I need a small change to a .htaccess file, related to path and redirection.
  I will have different languages on a website, example:</p>
  
  <p>domain.com/fr  - French site
  domain.com/ru - Russian site</p>
  
  <p>and pages on the site, example:
  domain.com/fr/contact
  domain.com/ru/contact</p>
  
  <p>there will be no sub directly on the server like "fr" or "ru", instead i want to define all languages supported in .htaccess file, so that if user visits in browser a page like: </p>
  
  <p>"domain.com/fr/contact"</p>
  
  <p>then .htaccess rules will direct to script:</p>
  
  <p>domain.com/translate.pl?fr/contact</p>
  
  <p>translate.pl will display correct language/page, but still show in browser original page "domain.com/fr/contact".</p>
  
  <p>If user is visiting in browser, example: domain.com/fr/contact  and clicks another page like "domain.com/faq", htaccess will keep the same language. If the user was on the "ru" site, then it will show "domain.com/ru/faq" if user clicked link "domain.com/faq".</p>