How to Find Root Directory of WordPress Website

Updated on June 4, 2025 by Editorial Team

If you run a WordPress site, you may have heard about the root directory, but finding it can seem tricky at first.

Many problems and customizations in WordPress require direct access to these files, so being able to locate the root directory is a helpful skill. 

Once you know where to look, you can manage your site with greater confidence and make fixes faster when needed.

In this blog, you’ll learn how to find root directory of WordPress website.

So, let’s get started!

Table Of Content

What is the WordPress Root Directory?

The WordPress root directory is the main folder that holds all of your WordPress website’s core files and folders. You can think of it as the “home base” for your WordPress site.

When you install WordPress, important files like wp-config.php, wp-login.php, and folders like wp-content are placed in this root directory. 

These files are needed for your site to work.

Wordpress root directory how to find root directory of wordpress website from the plus addons for elementor

Most hosting services put your WordPress root directory inside a folder called public_html, www, or sometimes htdocs. 

This folder is usually easy to find when you use your hosting account’s File Manager or an FTP client.

Common files and folders in the root directory:

  • wp-content: Holds themes, plugins, and uploads
  • wp-admin: Contains admin dashboard files
  • wp-includes: Contains core WordPress code
  • index.php: Main entry point for the site
  • wp-config.php: Stores site configuration settings

If you ever need to upload, change, or fix files for your site, you will usually do it in the root directory.

Knowing where the root directory is helps you make backups, add new themes or plugins, and troubleshoot problems.

You should be careful when working in this directory, since deleting or editing the wrong file can break your website.

What is the WordPress File Structure?

When you work with WordPress, all your files and folders are stored in a main folder called the root directory. This location holds everything your site needs to run.

Inside the root directory, you will see several important folders:

  • wp-admin: Contains files for the WordPress dashboard.
  • wp-content: Stores all your themes, plugins, and uploads.
  • wp-includes: Has core WordPress code and functions.

Some key files you might find in the root directory include:

  • wp-config.php: Holds your database information
  • .htaccess: Handles site rules
  • index.php: Loads the site content

The wp-content folder is where most of your changes happen. Here, you can find your uploaded images, installed plugins, and active themes.

The wp-admin and wp-includes folders are important but usually do not need to be changed. 

These folders make sure WordPress can run smoothly and provide all the functions you see in your dashboard.

Knowing this structure helps you find files faster and fix problems when they come up. If you ever need to connect by FTP or use your host’s file manager, you will know exactly what each folder or file does.

Why Knowing Your WordPress Root Directory Matters?

Your WordPress root directory holds all the core files for your website.

Understanding the root directory lets you:

  • Install or update themes and plugins manually
  • Troubleshoot errors by accessing key files like .htaccess
  • Backup or move your whole site to a new host
  • Edit configuration files, such as wp-config.php

If you need to reset your site, you may have to delete or replace specific files in the root directory. Site security can also depend on your ability to find and protect sensitive files there.

Sometimes, adding code snippets or customizations means editing files located in this directory. 

Keeping track of what’s in your root folder helps you avoid making accidental changes.

Knowing where your root directory is located can make tasks like fixing broken links, improving site performance, or setting up redirects much easier.

How to Find Root Directory of WordPress Website (Working Methods)

Here are two simple methods to find the WordPress root directory.

Method 1: Using cPanel or Hosting File Manager

To find your WordPress root directory, start by logging into your hosting account. 

Most web hosts provide access through a control panel called cPanel or a similar dashboard.

Once logged in, look for the File Manager. This is usually listed under the “Files” section. 

Click on File Manager to open it.

Open file manager from cpanel how to find root directory of wordpress website from the plus addons for elementor

Inside the File Manager, you will see a list of folders. The WordPress root directory is often named public_html, www, or it could be your domain name.

Locate public html file how to find root directory of wordpress website from the plus addons for elementor

Open the folder to check its contents. If you see files like wp-config.php, wp-content, wp-includes, and wp-admin, you are in the right place.

If you run more than one site, make sure you select the correct domain or directory. Some hosts keep each site in its own folder.

You can now add, move, or edit files in your WordPress root directory as needed. Always be careful when making changes, since these files control how your site works.

Method 2: Finding the Root Directory via FTP/SFTP

To access your WordPress root directory, you can use an FTP or SFTP client. Some common clients are FileZilla, Cyberduck, and WinSCP. 

First, open your FTP or SFTP client and enter your website’s server address, username, password, and port number. 

Your hosting provider usually provides these details.

Once you connect, you’ll see a list of folders and files on your server. 

Look for a folder named public_html, www, or sometimes your domain name. This folder is often the root directory for WordPress.

Root directory via ftp sftp how to find root directory of wordpress website from the plus addons for elementor

Be careful when editing or deleting files. Changes made here can affect your entire WordPress site. Make sure to back up important files before making changes.

20 checklist for wordpress site maintenance how to find root directory of wordpress website from the plus addons for elementor
Do you Manage WordPress Websites? Download Our FREE E-Book of 20+ Checklist for WordPress Site Maintenance. ​



    Troubleshooting: Can’t Find Your WordPress Root Directory?

    If you’re struggling to locate your WordPress root directory, you’re not alone. This directory is where core files like wp-config.php, wp-content/, and index.php reside. 

    If you can’t see these, you’re likely in the wrong folder, often a subdirectory.

    Step 1: Verify Your Access Point

    The first thing to check is how you’re accessing your site files:

    • FTP Client: Confirm you’re connected to the correct directory. Look for folders like public_html or files like wp-config.php.
    • Web Host File Manager (e.g., cPanel): Log into your hosting dashboard and open the File Manager. Navigate to the root folder that typically holds your WordPress files.

    Step 2: Look for Key Root Directory Indicators

    Your root directory should include these files/folders:

    • wp-config.php
    • wp-content/
    • index.php

    If these aren’t visible, you may be:

    • In a subdirectory (like /blog)
    • Using an FTP user with limited permissions

    Step 3: Check Inside WordPress (If Accessible)

    If you’re logged into the WordPress dashboard:

    Go to Plugins > File Manager (if installed)

    Ensure the plugin is active to browse files from inside WordPress

    Step 4: Avoid These Common Mistakes

    • Wrong login credentials: Make sure you’re using a hosting account with full file access.
    • Subdirectory confusion: If you installed WordPress in a folder (e.g., /site or /blog), that folder acts as your root directory.
    • Hidden files: Enable the option to view hidden files (like .htaccess) in your file manager settings.

    Step 5: Contact Support If Needed

    If you’ve tried everything and still can’t locate the root directory, reach out to your hosting provider’s support team. They can help guide you directly to the right location.

    Wrapping Up

    Finding your WordPress root directory is a simple task if you know where to look. You can use tools like cPanel’s File Manager or an FTP client such as FileZilla. 

    Most WordPress sites are located in the public_html or www folder on your web server.

    It’s important to be careful when working in the root directory. Changing or deleting files here can affect your entire website. Always make a backup before making any changes.

    Taking your time and following each step carefully can help you avoid mistakes.

    Also, if you’re using Elementor and want to enhance your site’s design and functionality without touching code, consider using The Plus Addons for Elementor.

    It offers 120+ powerful widgets and 1000+ pre-designed templates to help your website stand out from the competition.

    Check out the Complete List of 120+ Widgets and Extensions here. Start building your dream website without coding!

    FAQs on Finding WordPress Root Directory

    Can I move my WordPress root directory to another folder?

    Moving your WordPress root directory to a different folder is possible, but it needs careful planning. You will have to change certain settings in your wp-config.php file and update your website addresses in your WordPress dashboard. If not done properly, this may break your site or cause errors.

    How can I use FTP clients like FileZilla to access the WordPress root directory?

    You can connect to your website hosting using an FTP client like FileZilla by entering your host’s login details. Once connected, look for the main folder, often called public_html or your domain name. The files and folders in this directory are part of your WordPress root.

    Can the WordPress root directory be identified through the hosting control panel?

    Yes, you can use the file manager in your hosting control panel, often found in cPanel or similar dashboards. The WordPress root directory is normally named public_html, but some hosts may use different names, such as www or your website’s domain.

    What common indicators help differentiate the root directory from other directories in a WordPress site?

    The root directory always contains important files like wp-config.php, index.php, and folders such as wp-content, wp-admin, and wp-includes. These files and folders are not found in other directories of your WordPress installation.

    Which WordPress configuration file is typically located in the root directory and aids in recognition?

    The wp-config.php file is almost always located in the WordPress root directory. This file contains important settings for your website, and its presence is a strong sign that you are in the right folder.