My WordPress installation is visible in domain/wp folder. How to Fix?

If you have mistakenly installed your WordPress in wp directory and if we consider it as fresh new WordPress having no data then in that case you can simply uninstall it and again reinstall WordPress.

Step::1 To do this login to your cPanel and go to Softaculous section

Step::2 Click on All Installations

Step::3 Go to your WordPress installation and click on X icon to remove it completely.

Step::4 Now again Install WordPress via Softaculous and this time Choose Installation URL as your domain. Remove “wp” which is inside “In Directory” box and leave it blank.

Step::5 Fill the required details as usual and install it.

Now if we consider that your WordPress is having some data then in that case you cannot simply uninstall WordPress. You need to follow the steps below:

Step::1 Login to your cPanel and click on File Manager section

Step::2 Go inside public_html and then find your WordPress installation directory i.e wp

Step::3 Now select all the files and folder present inside wp and click on “Move” icon

Step::4 Simply move all the contents to /public_html

Now you need to check your Database name from wp-config.php file

Step::5 Once you have noted down your database name, go to phpMyAdmin

Step::6 Click over the same Database name and tap on Export and save the SQL file into your local PC.

Step::7 Now open that SQL file in Notepad++ and replace “domain/wp” with “domain” and save the file.

Step::8 Again go back to phpMyAdmin and select/check all the tables under that database and choose Drop option from with selected drop down

Step::9 Now Click on Import and browse the updated sql file and upload it.

Step::10 Finally click on Go button at the bottom of the page.

Once this file gets imported successfully you will find that your WordPress has been moved wp folder to public_html without any issue.

Was this answer helpful?

Related Articles

How to display Related Pages in WordPress?

Step::1 Login to your WordPress admin dashboard Step::2 Go to Plugins and click on Add...

How To Fix ‘413 Request Entity Too Large’ WordPress Error using .htaccess?

This error occurs generally when a user tries to upload a large size file and media in the...

How To Force Logout All Users In WordPress At Once?

How To Force Logout All Users In WordPress At Once? Step::1 Let’s start by logging into the...

How to Add Google Analytics to your WordPress website?

In this article, we will share how you can easily install Google Analytics in your WordPress...

How to Add WhatsApp live chat to your WordPress site?

Step::1 Login to your WordPress dashboardStep::2 Go to the Plugins section and click on Add...