title: Rewrite rule to end all URL's with .html including /index.html in the root and other directories
body: <p>My question is, How can I rewrite all of my URL's in a way that will add <code>.html</code> to the end of every URL?</p>
  
  <p>here is my .htaccess rule that I have </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
   RewriteEngine on
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
  
   RewriteRule ^(.*)$ index.php/$1
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I have tried adding .html to <code>index.php/$1.html</code> but this is throwing 404 all over the place.</p>
  
  <p>Please help </p>