title: Remove trailing slash using .htaccess in WordPress
body: <p>I'm looking for a way to remove trailing slash for all WordPress URL's.</p>
  
  <p>I found similar answers like <a href="https://stackoverflow.com/questions/4167539/remove-trailing-slash-using-htaccess-except-for-home-landing-page">this one</a> but it doesn't work when there's WordPress .htaccess rules before.</p>
  
  <p>Here is my current WordPress .htaccess:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>