From R4L Help Wiki
How to Move a WordPress from a Sub-Directory to the Root
When you install WordPress using the cPanel's Softaculous installer, it will by default suggest you install the package in the /wp direcotory. That can be useful if you have an existing site and ant to keep your new WordPress based site hidden while you work on it. When you have finished, you may want to move it to the root /public_html directory.
Backup Your Site
To back up your website, we recommend you use the Backup Wizard in the cPanel.
- Log into to manage your domain name
- Go to Paid Hosting > Manage Advanced Hosting to open the cPanel.
- In the Files section, Click on Backup Wizard, and then the blue Backup button
- Click the Home Directory button, and then the blue Home Directory button.
- Click back on your browser to return to the Backup page
- Click on MySQL Databases, and then the link for each database name.
- All of these files will be downloaded to the folder where your downloads are normally saved.
Get your WordPress Site Ready to Move
- Log into your WordPress dashboard. This should be on yourdomain.com/wp/wp-admin (assuming WordPress in installed in the /wp directory.
- Go to menu for Settings and click on General
- Look for WordPress Address (URL) and Site Address (URL), and remove the directory name so that it is just your domain name, and click the blue Save.
- You will see an error message page "Not Found - The requested URL /wp-login.php was not found on this server." Do not be alarmed, that is normal.
Remove the Old Site, Move Your WordPress Site
You will be connecting to the server either using FTP or the cPanel's File Manager
- If you want to keep a backup of your old website on the server, we recommend you create a directory called "old_site", and move everything except the /wp directory to this new folder.
- If you are using the File Manager within cPanel, go to Settings in the Prefenences window and select the checkbox Show Hidden Files.
- Once you have confirmed that your backups have completed downloading, move everything that is in the sub-directory to the /public_html folder.
- Once the files are moved, you can delete the sub-directory
Log in and Update the URL Details
- Log into your WordPress dashboard on your domain name with /wp-admin appended to it.
- Go to Settings -> Permalinks, choose Plain and click the blue Save Changes button.
- We recommend you then select Post Name, and click Save Changes again. This makes your site URLs more readable, and better for indexing by search engines.