Updated proxy_redirect to remove trailing slashes.