Take your site offline and set your preferred domain
To open the Site settings page:
Click Site settings
Click Site status
To hide your site, select Offline. Your site will be invisible until you change the status to Online
If you have more than one domain name, select the preferred one. This will be the domain name shown in search engines
If you have more than one domain name, set Always redirect to preferred domain to onand any traffic arriving from a secondary domain will be redirected
Google and other search engines may cache your site. If you have published the site and it has been indexed by Google, or other search engines, then taking the site offline will not remove any cached version of the site.