Question about domain & subdomain

oliviaPLS

Registered
Aug 26, 2015
1
0
1
newport beach
cPanel Access Level
Website Owner
Hi,

Recently I built a new website in WordPress(subdomain). I want to replace the old website(main domain) with the new website.
So I redirect the old domain to the new domain. But how to keep the old domain with the new website page that I created?

Example:
old website + XXX.com (main domain)
new website + YYY.com (subdomain)

--------- WANT TO BE LIKE -------------

new website + XXX.com (main domain)

Thank you!!!