title: How to remove double slash // in url on apache 2.4?
body: <p>i'm trying to remove the double slash in my url with a rewrite rule but it doen't work.</p>
  
  <p>i already tried:</p>
  
  <pre><code>RewriteRule ^(([^/]+/)*)/+(.*) https://www.example.com/$1$3 [R=301,L]
  </code></pre>
  
  <p>or</p>
  
  <pre><code>RedirectMatch 301 ^//(.*)$ http://example.com/$1
  </code></pre>
  
  <p>I created a file test.php my root directory with a dump of $_SERVER inside;
  Whenever i call example.com/test.php ou example.com////test.php it always display my file but the $_SERVER['query'] is still containing the ////
  How can i redirect it ?</p>