Do early rewrite to enforce new host names.