Setting up production rewriting