Login to the CMS.
At the Home node, set your Culture and Hostnames — these will be the domains that can access your website, for example, mysite.com.
In the tree menu, go to Global.
From the options on the right, select Settings.
On the General tab, locate the label Page not found.
Click Add, from the slide-out panel, select your Page not found page.
Save and Publish.