test for empty regexp flags in rewrite rule