Remove trailing slashes from URL in htaccess
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. |
It's alright I've solved it.
|
Rewrite Engine On
# Redirect to page without trailing slash RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ /$1 [L,R=301] |
All times are GMT -5. The time now is 09:22 AM. |