How to Move website from Example.com/wp to Example.com

If you installed the website at Example.com/wp with Example.com is the domain name of your website.

You can transfer websites from Example.com/wp to Example.com using the following steps:

Step 1. Go to Hosting

log-in-cpanel-hosting-1

Step 2. Go to File Manager

file-manager-wp1-min

Step 3. Go to Example.com/WP Directory

You will see the entire file and folder of the website on the right. Click on Select All, then Move to move the entire file/folder to example.com

file-manager-wp2-min

A popup appears:

file-manager-wp3-0-min

Remove the word “wp”

file-manager-wp3-min

and you will see

file-manager-wp4-min

Right-click wp-config.php and select Edit

file-manager-wp5-min

Insert the following two lines into wp-config.php, with example.com is the domain name of your website

define(‘WP_HOME’,’http://example.com’);
define(‘WP_SITEURL’,’http://example.com’);

file-manager-wp6-min

For example, my website is wpcodeless.top

file-manager-wp7-min

Step 4. Go to Example.com/wp-admin and install Better Search and Replace

wp-login-1-min

better-search-replace-2-min

Go to Tools –> Better Search Replace

Fill in the information and click Run Search/Replace. In the Select Tables field, press Ctrl A to select all

better-search-replace-4-min

Done 😀

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.