URL rewrite for domain change in permalinks

You should take care of this through nginx rewriting.