{"id":12886,"date":"2023-12-26T10:10:16","date_gmt":"2023-12-26T10:10:16","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=12886"},"modified":"2026-02-26T14:02:12","modified_gmt":"2026-02-26T14:02:12","slug":"how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/","title":{"rendered":"How Can I Change the Document Root for an Add-on Domain or Subdomain?"},"content":{"rendered":"<p>The below post explains how to change the Document Root of an Addon Domain or Subdomain in cPanel.<\/p>\n<p>The document root is a folder that is unique to a domain. Even the addon domains or subdomains in cPanel have their personal document root folder. cPanel allows users to change the document root for their addon domains and subdomains.<\/p>\n<p>The technique is nearly identical for both Addon Domains and Subdomains.<\/p>\n<p><strong>Follow these procedures to modify the Document Root of the Addon Domain:<\/strong><\/p>\n<ol>\n<li>Go to your\u00a0cPanel\u00a0account and log in.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12776 alignnone\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/kb-cpanel-78-login-1-260x300-1.webp\" alt=\"cPanel\" width=\"240\" height=\"277\" \/><\/li>\n<li>Scroll down to the \u201cDomains\u201d\u00a0section and select\u00a0\u201cAddon Domains\u201d\u00a0from the drop-down menu.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-12888 alignnone\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/Addon-Domains.png\" alt=\"Addon-Domains\" width=\"731\" height=\"147\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/Addon-Domains.png 731w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/Addon-Domains-300x60.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/li>\n<li>Just go to the\u00a0\u201cModify Addon Domain\u201d\u00a0section and click the edit icon of the addon domain you want to alter in the document root.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-12889 alignnone\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/modify-subdomains.png\" alt=\"modify-subdomains\" width=\"1024\" height=\"163\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/modify-subdomains.png 1024w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/modify-subdomains-300x48.png 300w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/modify-subdomains-768x122.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>A window called\u00a0\u201cChange Document Root\u201d\u00a0will appear. Click the\u00a0\u201cChange\u201d\u00a0button after entering the new document root in the\u00a0\u201cDocument Root\u201d\u00a0field.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-12890 alignnone\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/Change-Document-Root.png\" alt=\"Change-Document-Root\" width=\"350\" height=\"231\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/Change-Document-Root.png 350w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/Change-Document-Root-300x198.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/li>\n<li>The new document root for your addon domain will be established by cPanel.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-12891 alignnone\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/new-test.png\" alt=\"new-test\" width=\"425\" height=\"80\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/new-test.png 425w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/new-test-300x56.png 300w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/li>\n<\/ol>\n<p><strong>Follow these procedures to modify the Document Root of the Subdomain:<\/strong><\/p>\n<ol>\n<li>\u201cSubdomains\u201d\u00a0can be found in the\u00a0\u201cDomains\u201d\u00a0section.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-12892 alignnone\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/subdomains.png\" alt=\"subdomains\" width=\"728\" height=\"139\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/subdomains.png 728w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/subdomains-300x57.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/li>\n<li>In the\u00a0\u201cModify a Subdomain\u201d\u00a0section, click the edit icon of the subdomain you want to change in the document root.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-12893 alignnone\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/modify-subdomains-1.png\" alt=\"modify-subdomains\" width=\"1024\" height=\"163\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/modify-subdomains-1.png 1024w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/modify-subdomains-1-300x48.png 300w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/modify-subdomains-1-768x122.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>Enter the new document root in the\u00a0\u201cDocument Root\u201d\u00a0field and click the\u00a0\u201cChange\u201d\u00a0button in the\u00a0\u201cChange Document Root\u201d\u00a0window.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-12894 alignnone\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/Change-Document.png\" alt=\"Change Document\" width=\"350\" height=\"232\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/Change-Document.png 350w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/Change-Document-300x199.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/li>\n<li>It will change your subdomain\u2019s document root.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-12895 alignnone\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/new-test-domain.png\" alt=\"new-test-domain\" width=\"768\" height=\"121\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/new-test-domain.png 768w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/new-test-domain-300x47.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/li>\n<\/ol>\n<p><strong>Note of importance:\u00a0<\/strong>Changing the document root might sometimes cause the site to malfunction. It occurs when the web application or database\u2019s linkages and paths are missing. If this happens, contact the system administrator or developer.<\/p>\n<p>Change the Document Root of an <a href=\"https:\/\/www.bodhost.com\/kb\/how-to-discover-an-addon-domains-path-from-cpanel\/\" target=\"_blank\" rel=\"noopener\">Addon Domain<\/a> or Subdomain in cPanel in this manner. I hope you have truly understood everything, but if you have any questions, please contact our\u00a0<a href=\"https:\/\/www.bodhost.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">bodHOST<\/a> team. Also, you Check out our web hosting plans right now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The below post explains how to change the Document Root of an Addon Domain or Subdomain in cPanel. The document root is a folder that is unique to a domain.&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[875],"tags":[509,917],"class_list":["post-12886","post","type-post","status-publish","format-standard","hentry","category-domain-name","tag-add-on-domain","tag-subdomain"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Change Add-on\/Subdomain Document Root: Step-by-Step<\/title>\n<meta name=\"description\" content=\"The below post explains how to change the Document Root of an Addon Domain or Subdomain in cPanel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change Add-on\/Subdomain Document Root: Step-by-Step\" \/>\n<meta property=\"og:description\" content=\"The below post explains how to change the Document Root of an Addon Domain or Subdomain in cPanel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-26T10:10:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/kb-cpanel-78-login-1-260x300-1.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Paul Lopez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Lopez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/\"},\"author\":{\"name\":\"Paul Lopez\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/566ccff9a2fae4af852be8097b179813\"},\"headline\":\"How Can I Change the Document Root for an Add-on Domain or Subdomain?\",\"datePublished\":\"2023-12-26T10:10:16+00:00\",\"dateModified\":\"2026-02-26T14:02:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/\"},\"wordCount\":326,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/kb-cpanel-78-login-1-260x300-1.webp\",\"keywords\":[\"add on domain\",\"Subdomain\"],\"articleSection\":[\"Domain Name\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/\",\"name\":\"Change Add-on\\\/Subdomain Document Root: Step-by-Step\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/kb-cpanel-78-login-1-260x300-1.webp\",\"datePublished\":\"2023-12-26T10:10:16+00:00\",\"dateModified\":\"2026-02-26T14:02:12+00:00\",\"description\":\"The below post explains how to change the Document Root of an Addon Domain or Subdomain in cPanel.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/kb-cpanel-78-login-1-260x300-1.webp\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/kb-cpanel-78-login-1-260x300-1.webp\",\"width\":260,\"height\":300,\"caption\":\"cPanel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Domain Name\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/domain-name\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How Can I Change the Document Root for an Add-on Domain or Subdomain?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/566ccff9a2fae4af852be8097b179813\",\"name\":\"Paul Lopez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g\",\"caption\":\"Paul Lopez\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/paullopez\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Change Add-on\/Subdomain Document Root: Step-by-Step","description":"The below post explains how to change the Document Root of an Addon Domain or Subdomain in cPanel.","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:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/","og_locale":"en_US","og_type":"article","og_title":"Change Add-on\/Subdomain Document Root: Step-by-Step","og_description":"The below post explains how to change the Document Root of an Addon Domain or Subdomain in cPanel.","og_url":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2023-12-26T10:10:16+00:00","article_modified_time":"2026-02-26T14:02:12+00:00","og_image":[{"width":260,"height":300,"url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/kb-cpanel-78-login-1-260x300-1.webp","type":"image\/webp"}],"author":"Paul Lopez","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Paul Lopez","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/"},"author":{"name":"Paul Lopez","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/566ccff9a2fae4af852be8097b179813"},"headline":"How Can I Change the Document Root for an Add-on Domain or Subdomain?","datePublished":"2023-12-26T10:10:16+00:00","dateModified":"2026-02-26T14:02:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/"},"wordCount":326,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/kb-cpanel-78-login-1-260x300-1.webp","keywords":["add on domain","Subdomain"],"articleSection":["Domain Name"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/","url":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/","name":"Change Add-on\/Subdomain Document Root: Step-by-Step","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/#primaryimage"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/kb-cpanel-78-login-1-260x300-1.webp","datePublished":"2023-12-26T10:10:16+00:00","dateModified":"2026-02-26T14:02:12+00:00","description":"The below post explains how to change the Document Root of an Addon Domain or Subdomain in cPanel.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/#primaryimage","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/kb-cpanel-78-login-1-260x300-1.webp","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2024\/03\/kb-cpanel-78-login-1-260x300-1.webp","width":260,"height":300,"caption":"cPanel"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-can-i-change-the-document-root-for-an-add-on-domain-or-subdomain\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Domain Name","item":"https:\/\/www.bodhost.com\/kb\/category\/domain-name\/"},{"@type":"ListItem","position":2,"name":"How Can I Change the Document Root for an Add-on Domain or Subdomain?"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/566ccff9a2fae4af852be8097b179813","name":"Paul Lopez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c63d9f5400cd5ef87b481a24b2c1a4fb89f1674b6391325326cf13f1e735dff8?s=96&d=mm&r=g","caption":"Paul Lopez"},"url":"https:\/\/www.bodhost.com\/kb\/author\/paullopez\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/12886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=12886"}],"version-history":[{"count":3,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/12886\/revisions"}],"predecessor-version":[{"id":13902,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/12886\/revisions\/13902"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=12886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=12886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=12886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}