title: .htaccess remove trailing slash
body: <p>I have a htaccess file for a site to let it's script work . I don't know much about how it works, but I have to remove the trailing slash at the end.</p>
  
  <pre><code>RewriteEngine On
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?/$1 [L]
  
  RewriteCond %{HTTPS} off
  RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  RewriteCond %{HTTP_HOST} !^www\. [NC]
  RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  
  ErrorDocument 404 https://www.onlinegames.nl/
  
  ## 301 Redirects
  # 301 Redirect 1
  RewriteCond %{HTTP_HOST}  ^www\.onlinegames\.nl$ [NC]
  RewriteCond %{QUERY_STRING}  ^$
  RewriteCond %{HTTPS} =on
  RewriteRule ^index\.html$ https://www.onlinegames.nl/? [R=301,NE,NC,L]
  
  &lt;IfModule mod_headers.c&gt;
    &lt;FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$"&gt;
      Header set Access-Control-Allow-Origin "*"
    &lt;/FilesMatch&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>How can I remove the trailing slash at the end? I've tried to change a few things, but most of the times the script is not working correctly anymore and all the subpages are not working anymore.</p>