{"id":1444,"date":"2019-02-08T10:36:01","date_gmt":"2019-02-08T10:36:01","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583494-what-is-the-path-to-your-website-s-root-home-directory-and-how-to-change-it-in-hostinger\/"},"modified":"2025-08-27T07:13:58","modified_gmt":"2025-08-27T07:13:58","slug":"1583494-what-is-the-path-to-your-website-s-root-home-directory-and-how-to-change-it-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583494-what-is-the-path-to-your-website-s-root-home-directory-and-how-to-change-it-in-hostinger\/","title":{"rendered":"What Is the Path to Your Website\u2019s Root Home Directory and How to Change It in Hostinger?"},"content":{"rendered":"<p class=\"no-margin\">The root home directory is the folder that contains your website&rsquo;s data on a server. As a general rule, it is <b>public_html<\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To find the exact path to your root directory, go to <b><a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Websites<\/a><\/b> &rarr; <b>Dashboard<\/b>, search for <b>FTP accounts<\/b> on the sidebar, and click on it:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/cd6e3038-7acf-4e7e-b944-6fbdc0a1db1d.jpg\" alt=\"The hPanel sidebar showing to select FTP Accounts\"><\/div><p class=\"no-margin\">Next, scroll down to the <b>Create New FTP account section<\/b>. The root folder path will appear there:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/cd4ebd4b-3fbe-4775-9496-f1f1874d063b.jpg\" alt=\"The Create New FTP account section showing the root folder path\"><\/div><p class=\"no-margin\">The path will be in either one of the two following formats:<\/p><ul>\n<li>\n<p class=\"no-margin\">\/home\/u12345678\/domains\/domain.tld\/public_html<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">\/home\/u12345678\/public_html<\/p>\n<\/li>\n<\/ul><h2 id=\"h_7577c8b7b6\">How to Change the Home Directory<\/h2><p class=\"no-margin\">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 <b>create a redirect<\/b> on your <a href=\"\/support\/1583307-how-to-create-an-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">.htaccess file<\/a> as follows:<\/p><p class=\"no-margin\">\n<\/p><pre><code>RewriteEngine on<br>RewriteCond %{HTTP_HOST} ^domain.tld$ [NC,OR]<br>RewriteCond %{HTTP_HOST} ^www.domain.tld$<br>RewriteCond %{REQUEST_URI} !subdirectory\/<br>RewriteRule (.*) \/subdirectory\/$1 [L]<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Replace <b>domain.tld<\/b> with your domain name and <b>subdirectory<\/b> with the name of the folder where your website&rsquo;s files are located.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">In case you definitely need to change your home directory, you can consider hosting your project on a <a href=\"https:\/\/www.hostinger.com\/vps-hosting\" target=\"_blank\" class=\"intercom-content-link\">VPS Plan<\/a> &#128522;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finding the path to your root home directory<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[269],"tags":[],"class_list":["post-1444","post","type-post","status-publish","format-standard","hentry","category-accounts"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583494-what-is-the-path-to-your-website-s-root-home-directory-and-how-to-change-it-in-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583494-cual-es-la-ruta-al-directorio-raiz-y-como-se-puede-cambiar-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583494-quel-est-le-chemin-d-acces-au-repertoire-d-accueil-racine-et-comment-le-modifier-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583494-apa-jalur-untuk-direktori-home-root-dan-bagaimana-mengubahnya-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583494-qual-e-o-caminho-para-o-diretorio-inicial-raiz-do-seu-site-e-como-altera-lo-na-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583494------\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1444"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1444\/revisions"}],"predecessor-version":[{"id":5155,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1444\/revisions\/5155"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}