Rewrite configuration handling