{"id":3886,"date":"2026-07-22T21:33:33","date_gmt":"2026-07-22T21:33:33","guid":{"rendered":"https:\/\/disoh.com\/support\/how-do-i-change-a-domains-document-root-in-directadmin\/"},"modified":"2026-07-22T21:33:33","modified_gmt":"2026-07-22T21:33:33","password":"","slug":"comment-modifier-le-repertoire-racine-dun-domaine-dans-directadmin","status":"publish","type":"docs","link":"https:\/\/disoh.com\/fr\/support\/how-do-i-change-a-domains-document-root-in-directadmin\/","title":{"rendered":"Comment modifier le r\u00e9pertoire racine d'un domaine dans DirectAdmin ?"},"content":{"rendered":"<p>La racine du site correspond au dossier du serveur dans lequel se trouvent les fichiers du site web d'un domaine. La modifier vous permet de rediriger un domaine vers un autre dossier, ce qui s'av\u00e8re utile lors de la r\u00e9organisation de sites ou pour ex\u00e9cuter une application \u00e0 partir d'un sous-dossier. Ce guide explique comment proc\u00e9der dans DirectAdmin.<\/p>\n<h2>Qu'est-ce que la racine du r\u00e9pertoire de documents ?<\/h2>\n<p>Par d\u00e9faut, les fichiers d'un domaine se trouvent dans un dossier tel que <em>public_html<\/em> (ou un dossier sp\u00e9cifique au domaine). La racine du site correspond simplement au dossier que le domaine utilise pour h\u00e9berger le site web. En la modifiant, on indique au serveur de charger un autre emplacement.<\/p>\n<h2>Quand il peut \u00eatre utile de le modifier<\/h2>\n<ul>\n<li>R\u00e9organisation d'un site pour lui donner une structure de dossiers plus claire.<\/li>\n<li>Rediriger un nom de domaine vers le sous-dossier public d'un framework.<\/li>\n<li>Mise en ligne d'un site reconstruit \u00e0 partir d'un nouveau r\u00e9pertoire.<\/li>\n<\/ul>\n<h2>Modification du r\u00e9pertoire racine des documents<\/h2>\n<ol>\n<li>Connectez-vous \u00e0 DirectAdmin.<\/li>\n<li>Ouvrir <strong>Configuration du domaine<\/strong> puis s\u00e9lectionnez le domaine.<\/li>\n<li>Recherchez l'option permettant de d\u00e9finir ou de modifier le r\u00e9pertoire racine des documents ou la gestion de \u00ab private_html \u00bb.<\/li>\n<li>Saisissez le chemin d'acc\u00e8s au nouveau dossier.<\/li>\n<li>Enregistrer.<\/li>\n<\/ol>\n<h2>Apr\u00e8s avoir modifi\u00e9<\/h2>\n<ul>\n<li>Assurez-vous que les fichiers de votre site web se trouvent bien dans le nouveau dossier.<\/li>\n<li>Actualisez votre site pour v\u00e9rifier qu'il affiche bien le bon contenu.<\/li>\n<li>Modifiez les chemins d'acc\u00e8s cod\u00e9s en dur si n\u00e9cessaire.<\/li>\n<\/ul>\n<h2>D\u00e9pannage<\/h2>\n<ul>\n<li><strong>Le site affiche une page blanche ou une liste d'index :<\/strong> V\u00e9rifiez que vos fichiers, y compris l'index, se trouvent bien dans le nouveau r\u00e9pertoire racine du document.<\/li>\n<li><strong>L'ancien contenu s'affiche toujours :<\/strong> Videz le cache et actualisez la page.<\/li>\n<\/ul>\n<h2>Besoin d'aide ?<\/h2>\n<p>Si la modification du r\u00e9pertoire racine du site pose des probl\u00e8mes, notre \u00e9quipe d'assistance peut vous aider via le chat en direct.<\/p>","protected":false},"excerpt":{"rendered":"<p>The document root is the folder on the server where a domain&#8217;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&#8217;s files [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[12],"doc_tag":[],"class_list":["post-3886","docs","type-docs","status-publish","hentry","doc_category-webhosting"],"year_month":"2026-09","word_count":226,"total_views":"157","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Jorn","author_nicename":"jorn","author_url":"https:\/\/disoh.com\/fr\/author\/jorn\/"},"doc_category_info":[{"term_name":"Webhosting","term_url":"https:\/\/disoh.com\/fr\/docs-category\/webhosting\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I change a domain&#039;s document root in DirectAdmin? &#8211; Disoh<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/disoh.com\/fr\/soutien\/comment-modifier-le-repertoire-racine-dun-domaine-dans-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I change a domain&#039;s document root in DirectAdmin? &#8211; Disoh\" \/>\n<meta property=\"og:description\" content=\"The document root is the folder on the server where a domain&#8217;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&#8217;s files [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/disoh.com\/fr\/soutien\/comment-modifier-le-repertoire-racine-dun-domaine-dans-directadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"Disoh\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/disohhosting\" \/>\n<meta property=\"og:image\" content=\"https:\/\/disoh.com\/wp-content\/uploads\/2025\/07\/disoh_about.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-change-a-domains-document-root-in-directadmin\\\/\",\"url\":\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-change-a-domains-document-root-in-directadmin\\\/\",\"name\":\"How do I change a domain's document root in DirectAdmin? &#8211; Disoh\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/fi\\\/#website\"},\"datePublished\":\"2026-07-22T21:33:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-change-a-domains-document-root-in-directadmin\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-change-a-domains-document-root-in-directadmin\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-change-a-domains-document-root-in-directadmin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/disoh.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I change a domain&#8217;s document root in DirectAdmin?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/disoh.com\\\/fi\\\/#website\",\"url\":\"https:\\\/\\\/disoh.com\\\/fi\\\/\",\"name\":\"Disoh\",\"description\":\"Digital Solutions Hosting\",\"publisher\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/fi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/disoh.com\\\/fi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/disoh.com\\\/fi\\\/#organization\",\"name\":\"Disoh LLC\",\"url\":\"https:\\\/\\\/disoh.com\\\/fi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/disoh.com\\\/fi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/disoh.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/favicon_1.svg\",\"contentUrl\":\"https:\\\/\\\/disoh.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/favicon_1.svg\",\"width\":615,\"height\":615,\"caption\":\"Disoh LLC\"},\"image\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/fi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/disohhosting\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Comment modifier le r\u00e9pertoire racine d'un domaine dans DirectAdmin ? \u2013 Disoh","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/disoh.com\/fr\/soutien\/comment-modifier-le-repertoire-racine-dun-domaine-dans-directadmin\/","og_locale":"fr_FR","og_type":"article","og_title":"How do I change a domain's document root in DirectAdmin? &#8211; Disoh","og_description":"The document root is the folder on the server where a domain&#8217;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&#8217;s files [&hellip;]","og_url":"https:\/\/disoh.com\/fr\/soutien\/comment-modifier-le-repertoire-racine-dun-domaine-dans-directadmin\/","og_site_name":"Disoh","article_publisher":"https:\/\/www.facebook.com\/disohhosting","og_image":[{"width":1536,"height":1024,"url":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/07\/disoh_about.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/disoh.com\/sv\/support\/how-do-i-change-a-domains-document-root-in-directadmin\/","url":"https:\/\/disoh.com\/sv\/support\/how-do-i-change-a-domains-document-root-in-directadmin\/","name":"Comment modifier le r\u00e9pertoire racine d'un domaine dans DirectAdmin ? \u2013 Disoh","isPartOf":{"@id":"https:\/\/disoh.com\/fi\/#website"},"datePublished":"2026-07-22T21:33:33+00:00","breadcrumb":{"@id":"https:\/\/disoh.com\/sv\/support\/how-do-i-change-a-domains-document-root-in-directadmin\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/disoh.com\/sv\/support\/how-do-i-change-a-domains-document-root-in-directadmin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/disoh.com\/sv\/support\/how-do-i-change-a-domains-document-root-in-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/disoh.com\/"},{"@type":"ListItem","position":2,"name":"How do I change a domain&#8217;s document root in DirectAdmin?"}]},{"@type":"WebSite","@id":"https:\/\/disoh.com\/fi\/#website","url":"https:\/\/disoh.com\/fi\/","name":"Disoh","description":"Solutions num\u00e9riques H\u00e9bergement","publisher":{"@id":"https:\/\/disoh.com\/fi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/disoh.com\/fi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/disoh.com\/fi\/#organization","name":"Disoh LLC","url":"https:\/\/disoh.com\/fi\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/disoh.com\/fi\/#\/schema\/logo\/image\/","url":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/06\/favicon_1.svg","contentUrl":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/06\/favicon_1.svg","width":615,"height":615,"caption":"Disoh LLC"},"image":{"@id":"https:\/\/disoh.com\/fi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/disohhosting"]}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/docs\/3886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/comments?post=3886"}],"version-history":[{"count":0,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/docs\/3886\/revisions"}],"wp:attachment":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/media?parent=3886"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/doc_category?post=3886"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/doc_tag?post=3886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}