title: Remove .html from URLs with a redirect
body: <p>We have a website, unfortunately all the URLs have the <code>.html</code> suffix, its a Magento installation, Magento allows you to change this on the CMS, but again, unfortunately all this URLs with <code>.html</code> suffix have a good ranking in Google. We need to redirect to non <code>.html</code>.</p>
  
  <p>So, consider the following scenario, we are rebuilding this site from scratch, so we have the same urls on the new site but without the .html suffix. </p>
  
  <ul>
  <li>Now is:  <code>www.example.de/cool-shoes.html</code></li>
  <li>Will be: <code>www.example.de/cool-shoes</code></li>
  </ul>
  
  <p>So  <code>www.example.de/cool-shoes.html</code> will not exist anymore, and I've been trying a redirect with the <em>.htaccess</em> with no luck. </p>
  
  <p>I've tried so far: </p>
  
  <pre><code>RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.html\ HTTP/
  RewriteRule (.*)index\.html$ /$1 [R=301,L] 
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.html -f
  RewriteRule ^(.*)$ $1.html
  </code></pre>
  
  <p>but it doesn't seem to work...any ideas?</p>