Make trailing slash rewrite use relative path