Skip to main content
All CollectionshPanelAccounts
What Is the Path to Your Website’s Root Home Directory and How to Change It
What Is the Path to Your Website’s Root Home Directory and How to Change It

Finding the path to your root home directory

Updated over a month ago

The root home directory is the folder that contains your website's data on a server. As a general rule, it is public_html.

To find the exact path to your root directory, go to WebsitesDashboard, search for FTP accounts on the sidebar, and click on it:

The hPanel sidebar showing to select FTP Accounts

Next, scroll down to the Create New FTP account section. The root folder path will appear there:

The Create New FTP account section showing the root folder path

The path will be in either one of the two following formats:

  • /home/u12345678/domains/domain.tld/public_html

  • /home/u12345678/public_html

How to Change the Home Directory

The home directory cannot be changed on our Web, WordPress, and Cloud hosting packages due to control panel restrictions. Alternatively, you can host your files on a subdirectory and create a redirect on your .htaccess file as follows:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.tld$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain.tld$
RewriteCond %{REQUEST_URI} !subdirectory/
RewriteRule (.*) /subdirectory/$1 [L]

Replace domain.tld with your domain name and subdirectory with the name of the folder where your website’s files are located.

In case you definitely need to change your home directory, you can consider hosting your project on a VPS Plan 😊

Did this answer your question?