title: How to enforce trailing slash on everything EXCEPT filenames with htaccess
body: <p>I would like to enforce a trailing slash on all URLS except on filenames. Here is my .htaccess file so far.</p>
  <pre><code>RewriteEngine On 
  RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR]
  RewriteCond %{HTTPS} off
  RewriteCond %{HTTP_HOST} ^(www\.)?(.+)
  RewriteRule ^ https://%2%{REQUEST_URI} [R=301,L]
  
  RewriteCond %{THE_REQUEST} ^.*/index\.php 
  RewriteRule ^(.*)index.php$ /$1 [R=301,L]
  </code></pre>