To remove the last slash in the URL using .htaccess for such code

https://page/about/ <- This slash

 RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] 

    1 answer 1

     RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} .+/$ [NC] RewriteRule ^(.+)(/)$ $1 [L,R=301] DirectorySlash Off 

    Add to .htaccess

    • Thanks for the answer but it did not help - Rivera Time Club
    • @Rivera Time Club, completed the answer. Try it - Denis Heavenly