Update rewrite conditions