title: Redirect domain to default language NGINX
body: <p>Been struggling for so long to 301 redirect <code>site.com</code> to <code>site.com/en</code> and <code>site.com/my-page</code> to <code>site.com/en/my-page</code></p>
  
  <p>I manage to make the first redirect work, but not the second! also is it possible to use only one rule for both? So what is wrong with my second rule?</p>
  
  <pre><code>rewrite "^/(?![a-z]{2}|[a-z]{2}-[a-z]{2})$" /en redirect;
  rewrite "^/(?![a-z]{2}|[a-z]{2}-[a-z]{2})/(.*)$" /en/$2 redirect;
  </code></pre>
  
  <p>Thanks a lot in advance.</p>