title: Issue In Removing Double Or More Slashes From URL By .htaccess
body: <p>I am using the following htaccess rul to remove double or more slashes from web urls:</p>
  
  <pre><code>#remove double/more slashes in url
  RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
  RewriteRule . %1/%2 [R=301,L]
  </code></pre>
  
  <p>This is working fine for slashes occured in the middle of uris, such as, If use url:</p>
  
  <pre><code>http://demo.codesamplez.com/html5//audio
  </code></pre>
  
  <p>Its being redirected to proper single slahs url:</p>
  
  <p><a href="http://demo.codesamplez.com/html5/audio">http://demo.codesamplez.com/html5/audio</a></p>
  
  <p>But if the url contains double slashes in the beginning, JUST AFTER the domain name, then there its not working, example:</p>
  
  <pre><code>http://demo.codesamplez.com//html5/audio
  </code></pre>
  
  <p>its not being redirected.</p>
  
  <p>How I can fix the above rule to work for this type of urls as well? Thanks.</p>