resolve url rewritting error from server