title: Remove multiple trailing slashes in root using htaccess
body: <p>I have a rule in my htaccess file to remove any extra trailing slashes from a url, this works on sub-directories with any more than 1 trailing slash. However it doesn't work on the root; which i need it to do. </p>
  
  <p>For example.</p>
  
  <p><a href="http://www.example.com/test////" rel="noreferrer">http://www.example.com/test////</a> Redirects to <a href="http://www.example.com/test/" rel="noreferrer">http://www.example.com/test/</a></p>
  
  <p><a href="http://www.example.com///" rel="noreferrer">http://www.example.com///</a> Needs to redirect to <a href="http://www.example.com" rel="noreferrer">http://www.example.com</a></p>
  
  <p>Any ideas on what i need to add?. Cheers. </p>
  
  <pre><code>RewriteCond %{REQUEST_URI} ^(.*?)(?:/){2,}$
  RewriteRule . %1/ [R=301,L]
  </code></pre>