title: .htaccess rewrite to default language folder?
body: <p>I have my site broken down into several folders by language:</p>
  
  <pre><code>/
    /en/
      index.php
      about-us.php
      faq.php
      ...
  
    /fr/
      index.php
      about-us.php
      faq.php
      ...
  
    ...
    etc.
  </code></pre>
  
  <p>I'd like to have a rewrite rule that automatically rewrites to the <code>en</code> folder if somebody tried to enter <code>mydomain.com/about-us.php</code>.</p>
  
  <p>FYI, I also already have a rewrite rule in place that removes the extension, so really I want to make sure that <code>mydomain.com/about-us</code> rewrites to <code>mydomain.com/en/about-us</code>.  Here's my existing rewrite rule that does this:</p>
  
  <pre><code># allows for extension-agnostic urls 
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteRule ^(.*)$ $1.php
  </code></pre>
  
  <p>That make sense? Anyone help me out here?</p>
  
  <p>EDIT:</p>
  
  <p>@Gumbo - </p>
  
  <p>Here's what my <code>.htaccess</code> file looks like (this is all that's in it):</p>
  
  <pre><code>RewriteEngine On
  
  # defaults to the english site
  RewriteRule !^[a-z]{2}/ /en%{REQUEST_URI} [L,R=301]
  
  # allows for extension-agnostic urls
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteRule ^(.*)$ $1.php
  </code></pre>
  
  <p>This file is in the root of my website (not in a language folder). I've reloaded my webserver, just to be on the safe side, and I still get this error message when I try to go to <code>mydomain.com/about-us</code>:</p>
  
  <pre><code>Not Found
  
  The requested URL /about-us was not found on this server.
  </code></pre>
  
  <p>... where <code>mydomain.com/en/about-us</code> works just fine.</p>
  
  <p>Any other thoughts?</p>