Rewrite secondary domain names to primary on dev/test/live