Rewrite cookie domain