Normalize URL before redirection