How to Move WordPress From a Subfolder to the Root Directory
Log in to your CPanel yourdomainname.com/cpanel
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_bf2vg7.png)
Find File Manager in the Files section.
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_et5soq.png)
3 Go to the public_html folder or folder domain that you wanted to configure
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_mig9na.png)
Double click on wp folder
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1i6blv8.png)
Once get in, click select all
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_rzxy14.png)
Right click on any file and choose move
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_4gskmv.png)
It will come out with this pop up. Change the path by delete the wp. example : /public_html/
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_c6t17l.png)
Find wp-config.php, right click on it and choose view to see your database's name.
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_lmzo2v.png)
Find this section in wp-config.php file and remember your database name
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1jttaw5.png)
Go to your home Cpanel dashboard and search for PhpMyAdmin
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_192bda0.png)
Find your database's name and look at options table. Click on it
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_fhtbf.png)
Navigate to this section and change your url to main url, delete the subfolder's name. Example : https://yourdomain.com/
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_7nk5ge.png)
Once done, Go to Wordpress Manager
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_10d52m4.png)
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_72rjat.png)
Find your domain with the subfolder url. Click the dropdown button on left
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_vn5p8d.png)
Click Remove
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1li4p3v.png)
Then, import your WordPress back by click scan at the top of the list
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1ig9b2p.png)
Click Start scanning for installations
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_vw3s5l.png)
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_bf2vg7.png)
Find File Manager in the Files section.
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_et5soq.png)
3 Go to the public_html folder or folder domain that you wanted to configure
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_mig9na.png)
Double click on wp folder
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1i6blv8.png)
Once get in, click select all
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_rzxy14.png)
Right click on any file and choose move
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_4gskmv.png)
It will come out with this pop up. Change the path by delete the wp. example : /public_html/
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_c6t17l.png)
Find wp-config.php, right click on it and choose view to see your database's name.
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_lmzo2v.png)
Find this section in wp-config.php file and remember your database name
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1jttaw5.png)
Go to your home Cpanel dashboard and search for PhpMyAdmin
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_192bda0.png)
Find your database's name and look at options table. Click on it
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_fhtbf.png)
Navigate to this section and change your url to main url, delete the subfolder's name. Example : https://yourdomain.com/
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_7nk5ge.png)
Once done, Go to Wordpress Manager
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_10d52m4.png)
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_72rjat.png)
Find your domain with the subfolder url. Click the dropdown button on left
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_vn5p8d.png)
Click Remove
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1li4p3v.png)
Then, import your WordPress back by click scan at the top of the list
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1ig9b2p.png)
Click Start scanning for installations
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_vw3s5l.png)
Updated on: 07/10/2021
Thank you!