I need help. My store is running on Magento CE 1.9 and I wanted either add trailing slash to all my urls in Magento, or to get rid of it. Adding trailing slash didn't work, because some images and other linked files didn't want to load, so I added this in my .htaccess file, to get rid of trailing slash:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} !^\.localhost$ [NC]
RewriteRule ^(.+[^/])/$ http://%{HTTP_HOST}/$1 [R=301,L,NE]
The slash disappeared, and the website was rendering correctly. However, now I noticed that reviews of my products don't get registered at all. The customer can click on the link to write a review, however, after clicking submit button the page refreshes, but there is no message that the reviews is successfully submitted. The reviews also doesn't get registered in the admin panel. Maybe some other modules don't work as well, but I still didn't notice.
This is how the link looks without the code above: http://xxxxxxx.com/review/product/list/id/1/category/3#review-form
And this is how the link looks with the code above: http://xxxxxxx.com/review/product/list/id/1/category/3#review-form