rewritecond