title: Removing trailing slashes with mod rewrite?
body: <p>This relates to my previous question (which can be viewed <a href="https://stackoverflow.com/questions/1352425/mod-rewrite-including-punctuation">here</a>). I'd like to be able to remove the trailing slash from the URL so that it doesn't mess up certain areas of my site. The .htaccess code is here:</p>
  
  <pre><code># -s = File Exists
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  # -l = Is a SymLink
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  # -d = Is a Directory
  RewriteCond %{REQUEST_FILENAME} -d
  # if we match any of the above conditions - serve the file.
  RewriteRule ^.*$ - [NC,L]
  
  # only allows '.' in the "page" portion.
  RewriteRule ^([^/.]+)/?$ index.php?section=$1 [L]
  RewriteRule ^([^/.]+)/([^/]+)/?$ index.php?section=$1&amp;page=$2 [L]
  RewriteRule ^([^/.]+)/([^/]+)/([^/.]+)/?$ index.php?section=$1&amp;page=$2&amp;split=$3 [L]
  </code></pre>
  
  <p>As before, I'm out of my depth with this, so can anyone help out?</p>