remove trailing slash in url path

If there is a trailing slash, then remove it and redirect