add rewrite setting