Added option for rewriting cokkie domains.