title: .htaccess Rewrite to Force Trailing Slash after remove .html
body: <p>I have the following code in my htaccess file:</p>
  
  <pre><code>Options -Indexes
  RewriteEngine On
  
  # Redirect external .php requests to extension less url
  RewriteCond %{THE_REQUEST} ^(.+)\.html([#?][^\ ]*)?\ HTTP/
  RewriteRule ^(.+)\.html$ http://%{HTTP_HOST}/foo/$1 [R=301,L]
  
  # Resolve .html file for extension less html urls
  RewriteRule ^([^/.]+)$ $1.html [L]
  </code></pre>
  
  <p>That work fine when I go to www.mydomain.com/foo/index whithout .html. I want force trailing Slash at the end of index but i don't know how</p>
  
  <p>Does anyone know how to modify my code to make the trailing slash work ?</p>
  
  <p>Thanks!</p>