Article 6JFAV Remove trailing slashes from URL in htaccess

Remove trailing slashes from URL in htaccess

by
bionicle43
from LinuxQuestions.org on (#6JFAV)
This is what my htaccess file looks like:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

But I don't know to remove trailing slashes from the url or redirect the user to a page without trailing slashes.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments