rewrite the domain to subname.