Rewrite rule problem

Rewrite rule problem