Articles on: cPanel Tutorial

How to Move WordPress From a Subfolder to the Root Directory

  1. Log in to your CPanel yourdomainname.com/cpanel





  1. Find File Manager in the Files section.




3 Go to the public_html folder or folder domain that you wanted to configure




  1. Double click on wp folder




  1. Once get in, click select all




  1. Right click on any file and choose move




  1. It will come out with this pop up. Change the path by delete the wp. example : /public_html/




  1. Find wp-config.php, right click on it and choose view to see your database's name.




  1. Find this section in wp-config.php file and remember your database name




  1. Go to your home Cpanel dashboard and search for PhpMyAdmin




  1. Find your database's name and look at options table. Click on it




  1. Navigate to this section and change your url to main url, delete the subfolder's name. Example : https://yourdomain.com/




  1. Once done, Go to Wordpress Manager





  1. Find your domain with the subfolder url. Click the dropdown button on left




  1. Click Remove




  1. Then, import your WordPress back by click scan at the top of the list




  1. Click Start scanning for installations







Updated on: 07/10/2021

Was this article helpful?

Share your feedback

Cancel

Thank you!