add rewrite in directory providers