{"id":10688,"date":"2021-05-07T07:51:34","date_gmt":"2021-05-07T07:51:34","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=10688"},"modified":"2024-04-23T11:40:15","modified_gmt":"2024-04-23T10:40:15","slug":"change-document-root-addon-domain-subdomain-cpanel","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/","title":{"rendered":"How to Change the Document Root of Addon Domain or Subdomain in cPanel?"},"content":{"rendered":"<p>The document root is a folder that is unique to a domain. Even the addon domains or subdomains in cPanel have their own individual document root folder. cPanel allows users to change the document root for their addon domains and subdomains.<\/p>\n<h2>To Change the Document Root of Addon Domain<\/h2>\n<p>1. Log in to your cPanel account.<\/p>\n<p>2. Scroll down to the <strong>Domains<\/strong> sections and click on <strong>Addon Domains<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11604\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_addon_dom.png\" alt=\"\" width=\"1365\" height=\"214\" \/> 3. Go to the <strong>Modify Addon Domain<\/strong> section and click on the document root&#8217;s <strong>edit icon<\/strong> of the addon domain you want to change.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11603\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_addon_docroot.jpg\" alt=\"\" width=\"1627\" height=\"289\" \/><\/p>\n<p>4. The <strong>Change Document Root<\/strong> window will pop up. Enter the new\u00a0document root in the\u00a0<strong>Document Root<\/strong> field and click the <strong>Change<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11605\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_change_docroot.png\" alt=\"\" width=\"397\" height=\"266\" \/><\/p>\n<p>The cPanel will set the\u00a0new\u00a0document root for your addon domain.<\/p>\n<h2>To Change the Document Root of Subdomain<\/h2>\n<p>The procedure is almost the same as for changing the addon domains.<\/p>\n<p>1. Go to the\u00a0<strong>Domains<\/strong> sections and click on <strong>Subdomains<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11601\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_subdom.png\" alt=\"\" width=\"1363\" height=\"217\" \/><\/p>\n<p>2. In the <strong>Modify a Subdomain<\/strong> section, click the document root&#8217;s <strong>edit icon<\/strong> of the subdomain you want to change.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11602\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_subdom_docroot.jpg\" alt=\"\" width=\"1605\" height=\"275\" \/><\/p>\n<p>3. In the <strong>Change Document Root<\/strong> window, enter the new\u00a0document root in the\u00a0<strong>Document Root<\/strong> field and click the <strong>Change<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11600\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_change_sub_docroot.jpg\" alt=\"\" width=\"399\" height=\"267\" \/><\/p>\n<p>It will set the new\u00a0document root for your subdomain.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-warning kb-wisdom-wrapr-red\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Warning<\/strong>: Sometimes, changing the document root may cause the site to break. It happens if the links and paths for the web application or database do not exist. Contact the systems administrator or developer if this issue occurs.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The document root is a folder that is unique to a domain. Even the addon domains or subdomains in cPanel have their own individual document root folder. cPanel allows users to change the document root for their addon domains and subdomains. To Change the Document Root of Addon Domain 1. Log in to your cPanel [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,41],"tags":[109,2184,152,2187,2186,2185,634],"class_list":["post-10688","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-cpanel-faq","category-howtos","tag-addon-domain","tag-change-the-document-root-of-addon-domain-or-subdomain-in-cpanel","tag-cpanel","tag-document-root","tag-document-root-of-addon-domain-or-subdomain-in-cpanel","tag-how-to-change-the-document-root-of-addon-domain-or-subdomain-in-cpanel","tag-subdomain"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Change the Document Root of Addon Domain or Subdomain in cPanel<\/title>\n<meta name=\"description\" content=\"You can change the document root of your addon domains or subdomains in cPanel. The method is prescribed in simple steps with this article.\" \/>\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.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change the Document Root of Addon Domain or Subdomain in cPanel\" \/>\n<meta property=\"og:description\" content=\"You can change the document root of your addon domains or subdomains in cPanel. The method is prescribed in simple steps with this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-07T07:51:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-23T10:40:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_addon_dom.png\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/\",\"name\":\"Change the Document Root of Addon Domain or Subdomain in cPanel\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_addon_dom.png\",\"datePublished\":\"2021-05-07T07:51:34+00:00\",\"dateModified\":\"2024-04-23T10:40:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"You can change the document root of your addon domains or subdomains in cPanel. The method is prescribed in simple steps with this article.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/09\/win_IP_address_firewall_settings.png\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/09\/win_IP_address_firewall_settings.png\",\"width\":343,\"height\":379},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change the Document Root of Addon Domain or Subdomain in cPanel?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Change the Document Root of Addon Domain or Subdomain in cPanel","description":"You can change the document root of your addon domains or subdomains in cPanel. The method is prescribed in simple steps with this article.","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.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/","og_locale":"en_GB","og_type":"article","og_title":"Change the Document Root of Addon Domain or Subdomain in cPanel","og_description":"You can change the document root of your addon domains or subdomains in cPanel. The method is prescribed in simple steps with this article.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-05-07T07:51:34+00:00","article_modified_time":"2024-04-23T10:40:15+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_addon_dom.png","type":"","width":"","height":""}],"author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/","name":"Change the Document Root of Addon Domain or Subdomain in cPanel","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/05\/cp_addon_dom.png","datePublished":"2021-05-07T07:51:34+00:00","dateModified":"2024-04-23T10:40:15+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"You can change the document root of your addon domains or subdomains in cPanel. The method is prescribed in simple steps with this article.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/09\/win_IP_address_firewall_settings.png","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/09\/win_IP_address_firewall_settings.png","width":343,"height":379},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-document-root-addon-domain-subdomain-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Change the Document Root of Addon Domain or Subdomain in cPanel?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":656,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/10688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=10688"}],"version-history":[{"count":4,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/10688\/revisions"}],"predecessor-version":[{"id":15347,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/10688\/revisions\/15347"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=10688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=10688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=10688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}