Select location & language
  • Österreich German
  • Australia English
  • België Dutch
  • Canada English
  • Schweiz German
  • Deutschland German
  • Eesti English
  • Ελλάδα English
  • España Spanish
  • France French
  • Hrvatska English
  • Italia English
  • Latvija English
  • Lietuva English
  • Nederland Dutch
  • Norge Norwegian
  • Polska Polish
  • Portugal Portuguese
  • Slovensko English
  • Suomi Finnish
  • Sverige Swedish
  • United Kingdom English
  • United States English
  • American Samoa English
  • Andorra English
  • Anguilla English
  • Antarctica English
  • Bermuda English
  • British Indian Ocean Territory English
  • British Virgin Islands English
  • Cayman Islands English
  • Christmas Island English
  • Città del Vaticano English
  • Cocos (Keeling) Islands English
  • Falkland Islands English
  • French Southern Territories English
  • Gibraltar English
  • Guadeloupe French
  • Guam English
  • Guernsey English
  • Guyane française French
  • Heard & McDonald Islands English
  • Ireland English
  • Isle of Man English
  • Jersey English
  • Liechtenstein German
  • Luxembourg French
  • Malta English
  • Martinique French
  • Mayotte English
  • Monaco French
  • Montserrat English
  • New Zealand English
  • Norfolk Island English
  • Northern Mariana Islands English
  • Pitcairn Islands English
  • Puerto Rico Spanish
  • Réunion English
  • San Marino English
  • Slovenija English
  • St. Barthélemy English
  • St. Helena English
  • St. Martin English
  • St. Pierre & Miquelon English
  • Svalbard & Jan Mayen English
  • Turks & Caicos Islands English
  • U.S. Outlying Islands English
  • U.S. Virgin Islands English
  • Åland Islands English
  • Κύπρος English
  • Црна Гора English

How do I change a domain’s document root in DirectAdmin?

1 min read

The document root is the folder on the server where a domain’s website files live. Changing it lets you point a domain to a different folder, which is useful when reorganising sites or running an app from a subfolder. This guide explains how in DirectAdmin.

What the document root is #

By default, a domain’s files live in a folder like public_html (or a domain-specific folder). The document root is simply which folder the domain serves as the website. Changing it tells the server to load a different location.

When you might change it #

  • Moving a site into a cleaner folder structure.
  • Pointing a domain at a framework’s public subfolder.
  • Serving a rebuilt site from a new directory.

Changing the document root #

  1. Log in to DirectAdmin.
  2. Open Domain Setup and select the domain.
  3. Find the option to set or change the document root / private_html handling.
  4. Enter the new folder path.
  5. Save.

After changing #

  • Make sure your website files are actually in the new folder.
  • Reload your site to confirm it serves the right content.
  • Update any hardcoded paths if needed.

Troubleshooting #

  • Site shows a blank page or index list: confirm your files, including index, are in the new document root.
  • Old content still loads: clear caching and reload.

Need help? #

If changing the document root causes issues, our support team can help over live chat.

What are your feelings