Solved the exclusion problem in the rewrite filter