add rewrite rule register