> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.serverfreak.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Move WordPress From a Subfolder to the Root Directory

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


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_bf2vg7.png)


2. 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)

4. Double click on **wp** folder


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1i6blv8.png)

5. Once get in, click select all


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_rzxy14.png)

6. Right click on any file and choose move


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_4gskmv.png)

7. 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)

8. 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)

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


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1jttaw5.png)

10. Go to your home **Cpanel** dashboard and search for **PhpMyAdmin**


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_192bda0.png)

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


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_fhtbf.png)

12. 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)

13. 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)

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


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_vn5p8d.png)

15. Click **Remove** 


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_1li4p3v.png)

16. 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)

17. Click **Start scanning for installations**


![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/untitled_vw3s5l.png)



