title: 301 redirect in htacess for default language
body: <p>I have wordpress site with qtranslate plugin.
  Russian language is default (ru).
  I have pages:
  <a href="http://example.com/en/xxx" rel="nofollow">http://example.com/en/xxx</a>
  <a href="http://example.com/ru/xxx" rel="nofollow">http://example.com/ru/xxx</a> (302 redirect to <a href="http://example.com/xxx" rel="nofollow">http://example.com/xxx</a>)
  <a href="http://example.com/xxx" rel="nofollow">http://example.com/xxx</a></p>
  
  <p>I need to create 301 redirect from <a href="http://example.com/ru/xxx" rel="nofollow">http://example.com/ru/xxx</a> to <a href="http://example.com/xxx" rel="nofollow">http://example.com/xxx</a></p>
  
  <p>I tried to write rule in htacess for redirection, but I got redirect loop:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
  RewriteRule ^index\.html$ http://example.com.ua/ [R=301,L]
  RewriteBase /
  
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
  RewriteRule ^index\.php$ http://example.com.ua/ [R=301,L]
  RewriteCond %{HTTP_HOST} ^www.example\.com.ua$ [NC]
  RewriteRule ^(.*)$ http://example.com.ua/$1 [R=301,L]
  
  
  RewriteCond %{REQUEST_URI} !^/ru(/|$)
  RewriteRule ^(.*)$ /$1 [R=301]
  
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>