This article helps you to understand how to how to move your wordpress from a subfolder to the root directory.
This article consists of following topics:
- Why I need so?
- How can do it myself without impacting websites?
- Difficulty level [Easy, Medium, Hard].
- Total time consumed.
- Related Plugin or Workaround
Why i need to do so?
To move your wordpress from a subfolder to the root directory follow the steps:
1:Prepare your WordPress installation for the move
Prior to physically moving the files, you will need to prepare the installation to accept the new URL name.
Step1:Log into your WordPress Dashboard.
Step3: Change the URL of your website (change path if you move it to different folder on same domain name).
Change WordPress Address(URL) and Site Address (URL)
Step4: Click on Save
You will get the 404 error page. That’s normal. Proceed with the next step.
Moving your WordPress from a subfolder to your main folder
Step1: Login to Cpanal
Step2:In a cPanel area,Go to Files and then click on the File Manager tool.
Step3: Go to Settings In the Preferences window that appears, select the checkbox entitled Show Hidden Files.And click on save.
a)Click on folder( you will want to navigate to the folder you have the WordPress site in)
b)Check the box Select All
c)Right click on files and click on copy
e) Click on copy files
a)Click on public_html folder. You can see all files copies here.
Step6: Click on old folder which have wp_files
a)Click on folder(you can see all files also here)
a)Log into your NEW WordPress admin dashboard.
b)Go to Administration -> Settings -> Permalinks and ensure the link structure is the same as your new URL.