Add rewrite base config