Knowledgebase
HOW TO: Move WordPress Files from Folder to Root Folder in cPanel
Posted by Asilah A. on 16 March 2021 01:42 PM

Do you want to move a WordPress files from folder to root folder?

 

Step 1. Create a complete backup of your website

For this example, the path of Wordpress files of website shinjiru.org is : /home/shinjiru/public_html/wp

1) Select all the files

2) Compress all selected files and zip

The backup file .zip is for your own record. You may download it and save into your computer.

 

Step 2. Moving your WordPress files from folder to root folder

1) Select all the files again and click Move

 

2) Move the files to root folder/path : /public_html/

 

3) Make sure that WordPress files successfully move to root folder/path.

 

Step 3. Change Site URL Settings in phpMyAdmin

Once you move the WordPress files, you will not be able to access the WordPress admin area on the root domain. You may need to change the site url from http://shinjiru.org/wp to http://shinjiru.org/

 

FROM http://shinjiru.org/wp

 

TO http://shinjiru.org

 

Step 4. Make sure .htaccess file using default code.

If you are using cPanel File Manager, then click on the Settings button at the top right corner of the screen. This will bring up the preferences popup. You need to select ‘Show hidden files’ and then click on the save button.

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

 

That’s all, you have successfully moved your site from folder to root folder/path.Test out your website to make sure that everything is working fine. We hope this article helped you move your site!

 

If you face any difficulties on the setup, please feel free to contact our support team by submitting a ticket on https://247livesupport.biz or emailing out support team at [email protected].

(1 vote(s))
Helpful
Not helpful

Comments (0)
Copyright © 1998 - 2021 Shinjiru International Inc. All Rights Reserved.