title: Redirection Htaccess without a trailing slash
body: <p>I would like to redirect all URL having a trailing slash referenced by google to the new url without a trailing slash. </p>
  
  <p>Example : 
  <a href="http://example.com/toto/" rel="nofollow noreferrer">http://example.com/toto/</a> ===> to <a href="http://example.com/toto" rel="nofollow noreferrer">http://example.com/toto</a></p>
  
  <p>Warning I already rewrite the rule to avoid the .html extension also !</p>
  
  <p>Here is my existing code : </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^\.]+)$ $1.html [NC,L]
  RewriteCond %{REQUEST_URI} (.+)$
  RewriteRule ^ %1 [R=301,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I got the following error : </p>
  
  <pre><code>Not Found
  
  The requested URL /example/.html was not found on this server.
  
  Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  </code></pre>