Rewrite config