Added ifNot rewrite condition