changed rewrite directive