Remove trailling slashes on Magento

Posted on Updated on

Tailing slash can be removed using followings on .htaccess file with rewrite module

Options +FollowSymLinks
RewriteEngine on

### NEW REWRITE – REMOVE TAILING SLASHES
RewriteBase /
RewriteCond %{REQUEST_URI} !^/checkout.*$
RewriteCond %{REQUEST_URI} !^/index.php\/admin.*$
RewriteRule ^(.+)/$ /$1 [L,R=301]
##

Advertisements