title: .htaccess add trailing slash if no extension before the last trailing slash
body: <p>I have a code here which rewrites url by adding trailing slash at the end.
  Condition:</p>
  <ol>
  <li>No File Extension</li>
  <li>No slash at the end</li>
  </ol>
  <p>
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_URI} !\..*$
  RewriteRule ^(.*)([^/])$ http://%{HTTP_HOST}/Brian/$1$2/ [L,R=301]
  </code></pre>
  <p>If the url is:</p>
  <pre><code>http://localhost:8080/Brian/test123 -&gt; http://localhost:8080/Brian/test123/ - CORRECT
  http://localhost:8080/Brian/test123. -&gt; http://localhost:8080/Brian/test123. - CORRECT
  http://localhost:8080/Brian/test123.awd -&gt; http://localhost:8080/Brian/test123.awd - CORRECT
  
  http://localhost:8080/Brian/test123.awd/a -&gt; http://localhost:8080/Brian/test123.awd/a - THIS IS MY PROBLEM
  </code></pre>
  <p>I want to make the result like this.</p>
  <pre><code>http://localhost:8080/Brian/test123.awd/a/
  </code></pre>
  <p>Please help. Thanks!</p>