I need to remove mass trailing slashes, now I have
rewrite ^/(.*)/$ /$1 permanent;
So www.example.com/
becomes www.example.com
.
It's good, but when I go to www.example.com///
(any amount of slashes) it's not redirecting. I need to make any amount of slashes at the end redirect to a page without a slash.