added flag support to the RewriteCondition
added condition flag support