title: Moving WordPress from subdomain to main domain
body: <p>I’ve read the WordPress Codex instructions regarding moving WordPress, but none of the information provided seems to apply to my exact situation and I have a couple of questions before I go and break things.
  I have a main domain on which my old wordpress site is currently running (e.g - example.com)  I wanted to change the layout of the website but at the same time wanted to keep my main site running so made a subdomain (beta.example.com) and created my new wordpress website on this.
  Now I want to make my beta website the main website (i.e make beta.example as example.com) and remove the main website, how do I go about that?
  I am using cpanel and both my folders are in the public html directory
  Thanks in advance.</p>