fixed urlRewrite trailing slash issue