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.
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.