Loading...

Knowledge Base

What Is a Document Root? Understanding Website Directory

The document root is the main directory where the website files for a specific domain name are stored. In the Bluehost hosting environment, each domain—whether it’s your primary domain, an addon domain, or a subdomain—requires its own unique folder. This structure keeps each website separate and allows them to function independently.

Primary Domain

Your primary domain is stored in the main directory called public_html.
Because this folder is dedicated to your primary domain, its files remain separate from those belonging to addon domains or subdomains.

Primary Domain Document Root:
public_html

Addon Domains and Subdomains

When you create an addon domain or a subdomain in Bluehost’s cPanel, the system automatically generates a corresponding directory. Each of these additional domains is rooted in its own separate folder.

This folder structure ensures that:

  • Addon domains operate as completely separate websites
  • Subdomains function as independent sections of your main website
  • Files from different domains remain organized and isolated

Where to Find the Document Root

After setting up an addon domain or subdomain, you can view its document root in cPanel:

  1. Log in to your Bluehost Portal.
  2. Click Hosting in the left-hand menu.
  3. In the hosting details page, click the cPanel button.

    Bluehost Portal - Hosting Tab Details cPanel
     

  4. Your cPanel will open in a new tab.

    Bluehost Portal - Hosting Tab - Quick Links - cPanel button - cPanel Dashboard
     

  1. In cPanel, scroll down to the Domains section and click on Domains.

    Bluehost cPanel Domains
     

  2. In the domain list, the Document Root column will show the folder where your website files are stored.

    Bluehost cPanel Domains List Document Root Column
     

Clicking the document root path instantly opens the correct folder inside the File Manager.

Alternative Way to Find the Document Root

  1. Log in to your Bluehost Portal.
  2. In the left-hand menu, click Websites.
  3. Click the Manage button located next to the website you want to manage.

    Bluehost Portal - Website Manage button
     

  1. In the top navigation menu, click Files & Access.

    Bluehost Portal Websites Tab - Files and Access
     

  2. Look for the Document Root section, which shows the root directory path for your website.

    Bluehost Portal Websites Tab - Files and Access Menu Document Root
     

    Bluehost Portal Websites Tab - Files and Access Menu Document Root
     

Summary

Understanding how document root folders work helps you keep your websites well-organized, especially when managing multiple domains in Bluehost. Whether you're working with your primary domain, addon domains, or subdomains, knowing where each site’s files are located ensures smoother site management, easier troubleshooting, and a more structured hosting environment.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Loading...