title: URL directory as variable with htaccess
body: <p>my actual .htaccess is</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([_0-9a-zA-Z-]+)? index.php?cl=$1 [L]
  </code></pre>
  
  <p>and it works good when i type something like sub.domain.com/client1 (then i get the $cl variable in my php code properly). Problem is when i add a final trailing slash like sub.domain.com/client1/ then i get "client1/" in my var! </p>
  
  <p>How can i fix it? I know that the second condition in my htaccess looks for existing directories and skips the rewrite rule but there is no "client1" dir on my server!</p>