Remove multiple trailing slashes


#1

I’m using a basic EasyEngine WordPress stack.

How do I add a 301 redirect to posts with multiple trailing slashes to just one? My Google Analytics data is all screwed up with one page detected as multiple pages just because of the trailing slashes. And technically, they are being detected as different pages, rather than the same one.

Example redirections: example.com/post-2//// to example.com/post-2/ example.com/asdf// to example.com/asdf/

How do I do this via Nginx or whatever? Shouldn’t this be already taken care of by default by EE?


#2