title: .htaccess How to check if URI + file extension doesn't exists before RewriteRule
body: <p>When a page is accessed via an URL like this:</p>
  
  <p>/pagename</p>
  
  <p>How can we check if the following file exists via htaccess</p>
  
  <p>/pagename.htm</p>
  
  <p>And then load index.php if not?</p>
  
  <p>Here's what I'm working with:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  </code></pre>
  
  <p>I've tried a variation of this but no luck:
      RewriteCond %{REQUEST_URI} !/.htm -f</p>