How To Move WordPress Installation To Root Directory Or Sub-Folder

May 31, 2015

Let’s say if you are the Webmaster for Multiple websites and you already had many websites under their own sub-directories as sub domains and one day you decided to move one of your sub domains into the root directory or may be altogether into a totally different hosting provider. The steps to get this done is little tricky but it’s absolutely possible even for a newbie in WordPress. (IMP: Please take backup of your WordPress directory and your WordPress database).

Most of the people would have either of the two scenarios of moving WordPress setup files:

1. Moving WordPress from sub-directory to root folder.
2. Moving WordPress from root folder to sub-directory.

Let’s start with the first scenario where we would be moving our WordPress installation from sub-directory or sub-folder to root folder.

1. Moving WordPress from sub-directory to root folder

Hope you have already taken a backup of your WordPress installation files and your WordPress database.

Suppose if you have your WordPress installed in a sub-directory like wordpress, you would be accessing your WordPress website using the Url http://www.yourdomain.com/wordpress/ and now we would want it to be moved to the domain’s root folder so that you can access your WordPress website using the Url http://www.yourdomain.com.

Steps:

1. Login to your WordPress Dashboard http://www.yourdomain.com/wordpress/wp-admin

2. Go to Settings –> General.

3. Change your WordPress Address (URL) and Site Address (URL) to http://www.yourdomain.com

medianh-consulting-online-marketing.jpg

4. Click on Save (Ignore the 404 error page which you would see once you save this setting)

5. Login to your hosting provider Control Panel–> File Manager

6. Select all the files in sub-folder or sub-directory under your domain and move to parent or move it to folder one level up of the domain.

7. Now when you check your new WordPress Url http://www.yourdomain.com, you would see some of the images not displayed or links broken. (This is because in the database, entries to the old Url is still referred.)

8. To fix this, Login to WordPress Dashboard using the new WordPress Url address http://www.yourdomain.com/wp-admin

9. Install and activate new plugin by name “Velvet Blues Update URLs” from your WordPress Dashboard.

10. Click on Tools –> Update URLs.

11. Enter your OLD Url in the text box which should be http://www.yourdomain.com/wordpress

12. Enter your NEW Url in the corresponding text box which should be http://www.yourdomain.com

13. Select all the Checkbox and click on the button “Update URLs NOW”.

medianh-consulting-SEO-websites.jpg

Wooo…you made it, if you have followed all the above steps. Now check your WordPress Website running successfully on the domain http://www.yourdomain.com

2. Moving WordPress from root folder to sub-directory.

Suppose if you want to move your WordPress installation from domain’s root directory to a sub-folder or sub-directory, Just follow the below steps.

Steps:

1. Login to your WordPress Dashboard http://www.yourdomain.com/wp-admin

2. Go to Settings –> General.

3. Change your WordPress Address (URL) and Site Address (URL) to http://www.yourdomain.com/wordpress

medianh-consulting.jpg

4. Click on Save (Ignore the 404 error page which you would see once you save this setting)

5. Login to your Hosting provider Control panel–>File Manager

6. First create a sub-folder under your domain’s root folder like eg: wordpress

7. Select all the files and folders under your domain’s root folder and move them into your newly created sub-folder wordpress

8. Now when you check your new WordPress Url http://www.yourdomain.com/wordpress, you would see some of the images not displayed or links broken. (This is because in the database, entries to the old Url is still referred.)

9.To fix this, Login to WordPress Dashboard using the new WordPress Url  http://www.yourdomain.com/wordpress/wp-admin

10. Install and activate new plugin by name “Velvet Blues Update URLs” from your WordPress Dashboard.

11. Click on Tools –> Update URLs.

12. Enter your OLD Url in the text box which should be http://www.yourdomain.com

13. Enter your NEW Url in the corresponding text box which should be http://www.yourdomain.com/wordpress

14. Select all the Checkbox and click on the button “Update URLs NOW”.

medianh-consulting-SEO-websites.jpg

Now check your WordPress Website running successfully on the domain http://www.yourdomain.com/wordpress

Good Luck..! I hope you guys found our first post informative and we are looking forward to hear from you and in case if you run into any issues, please leave a comment in the discussion board so that we can take a look into it.


ABOUT THE EDITORIAL STAFF

This Post is by the Editorial Staff at Medianh Consulting, a Web Development,  SEO and Online Marketing Company.


 

No comments

Leave a Reply

Your email address will not be published. Required fields are marked *