How to remove trailing slash with nginx rewrites
``` # Remove trailing slash by doing a 301 redirect rewrite ^/(.*)/$ /$1 permanent; ```