How To Find WordPress Root Directory: Step by Step Guide 2023

If you’re working with WordPress, you may need to access the root directory of your website for various reasons, such as installing a plugin, modifying the .htaccess file, or editing the wp-config.php file. In this step-by-step guide, we’ll show you how to find the WordPress root directory on your server.

Step 1: Log in to your Hosting Account Control Panel

The first step is to log in to your hosting account control panel. The login URL and credentials vary depending on your hosting provider. Once you’re logged in, you should see a dashboard or control panel with various options and settings.

Step 2: Locate the File Manager

Next, locate the File Manager option. This is usually located under the Files or File Management section of your control panel. Click on it to open the File Manager.

Step 3: Navigate to the Root Directory

Once you’re in the File Manager, navigate to the root directory of your website. This directory is usually named public_html, www, or your domain name. If your WordPress installation is in a subdirectory, you’ll need to navigate to that directory instead.

Step 4: Locate the wp-config.php file

Once you’ve located the root directory, look for the wp-config.php file. This file contains important information about your WordPress installation, such as your database credentials and security keys.

Step 5: Check the File Path

To confirm that you’ve found the correct directory, check the file path of the wp-config.php file. The file path should look something like this: /public_html/wp-config.php or /home/username/public_html/wp-config.php. The exact file path will depend on your hosting setup.

Congratulations! You’ve now found the WordPress root directory on your server. From here, you can make any necessary changes or modifications to your WordPress installation. Just be careful not to delete or modify any important files unless you know what you’re doing.