{"id":2001,"date":"2024-06-02T13:03:28","date_gmt":"2024-06-02T13:03:28","guid":{"rendered":"https:\/\/kb.cloudhostgeek.com\/?p=2001"},"modified":"2025-11-05T10:49:05","modified_gmt":"2025-11-05T10:49:05","slug":"move-a-website-from-subfolder-to-base-domain","status":"publish","type":"post","link":"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/","title":{"rendered":"Complete guide to shifting your site from subfolder to root domain in cPanel"},"content":{"rendered":"\n<p class=\"has-black-color has-text-color has-link-color wp-elements-ff82a2716df2ce8bd72af239a26e72bf\">Encountering the &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Index Of<\/mark><\/strong>&#8221; error after uploading your website indicates incorrect file placement. This error displays a directory listing instead of your intended website content. This article will guide you  the process to move your website from a subfolder to the base domain within your cPanel account.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Steps to Move a Website from Subfolder to Base Domain<\/strong><\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-1f2a3251c3d96b294f6c1bc659170d71\">1. Begin by <strong><a href=\"https:\/\/cpanel.incentre.net:2083\/\" style=\"color:#7a00df;\">logging in to your cPanel<\/a><\/strong> account and locating the \u201c<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">File Manager<\/mark>\u201d<\/strong> section.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-a59f16fa590db085451f69da062656b9\">2. Within the File Manager, locate and open the directory labeled &#8220;<strong><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">public_html<\/mark><\/code><\/strong>&#8221; (also known as the document root). This is the primary directory where your website&#8217;s files should reside.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-418f97f832ac0ad57bc7922c91d71e4c\">3. If you uploaded your website files to a subfolder within &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\"><code>public_html<\/code><\/mark><\/strong>&#8221; (e.g., &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">wordpress<\/mark><\/strong>&#8220;), open that subfolder.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-1b6ca1e545824867ef722d65953f0724\">4. You should indeed see all your website&#8217;s essential files within this directory. Look for a file named &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\"><code>index.php<\/code><\/mark><\/strong>&#8221; or &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\"><code>index.html<\/code><\/mark><\/strong>&#8221; as an indicator of the correct location.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-e4f82ac5527caa9362f902911812a9f1\">5. Utilize the &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Select All<\/mark><\/strong>&#8221; function to select all files and folders within the identified directory. Right-click on any selected item and choose &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Move<\/mark><\/strong>.&#8221;<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-24fa333722ea9c7e3889fa9d93e00d10\">6. In the &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Move<\/mark><\/strong>&#8221; dialog box, ensure the destination path is set to &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\"><code>\/public_html<\/code><\/mark><\/strong>&#8221; (the document root). This guarantees your website files reside in the correct location for proper display. Confirm the move by clicking &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Move Files<\/mark><\/strong>.&#8221;<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-5242dee9ac17fa99442e0b2a86eb0666\">7. After the successful move, revisit the &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\"><code>\/public_html<\/code><\/mark><\/strong>&#8221; directory and remove any leftover files or folders from the previous incorrect location (e.g., the original subfolder and its contents if you uploaded everything within a subfolder).<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-d60c1ff09a798497384bb8d9ecf0f5f5\">8. Clear your browser&#8217;s cache and revisit your website in a web browser. This ensures you&#8217;re viewing the most recent website files. Verify that your website content displays correctly, resolving the &#8220;<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#7a00df\" class=\"has-inline-color\">Index Of<\/mark><\/strong>&#8221; error.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-9aa0dc2ae77b2a306ce7467520ce23d6\">By following these steps, you can effectively correct the file placement issue and ensure your website functions as intended within your <strong><a href=\"https:\/\/bigcloudy.com\/cpanel-hosting.php\" style=\"color:#7a00df;\">cPanel hosting<\/a><\/strong> environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Encountering the &#8220;Index Of&#8221; error after uploading your website indicates incorrect file placement. This error displays a directory listing instead of your intended website content. This article will guide you the process to move your website from a subfolder to the base domain within your cPanel account. Steps to Move a Website from Subfolder to Base Domain 1. Begin by logging in to your cPanel account and locating the \u201cFile Manager\u201d section. 2. Within the File Manager, locate and open the directory labeled &#8220;public_html&#8221; (also known as the document root). This is the primary directory where your website&#8217;s files should reside. 3. If you uploaded your website files to a subfolder within &#8220;public_html&#8221; (e.g., &#8220;wordpress&#8220;), open that subfolder. 4. You should indeed see all your website&#8217;s essential files within this directory. Look for a file named &#8220;index.php&#8221; or &#8220;index.html&#8221; as an indicator of the correct location. 5. Utilize the &#8220;Select All&#8221; function to select all files and folders within the identified directory. Right-click on any selected item and choose &#8220;Move.&#8221; 6. In the &#8220;Move&#8221; dialog box, ensure the destination path is set to &#8220;\/public_html&#8221; (the document root). This guarantees your website files reside in the correct location for proper display. Confirm the move by clicking &#8220;Move Files.&#8221; 7. After the successful move, revisit the &#8220;\/public_html&#8221; directory and remove any leftover files or folders from the previous incorrect location (e.g., the original subfolder and its contents if you uploaded everything within a subfolder). 8. Clear your browser&#8217;s cache and revisit your website in a web browser. This ensures you&#8217;re viewing the most recent website files. Verify that your website content displays correctly, resolving the &#8220;Index Of&#8221; error. By following these steps, you can effectively correct the file placement issue and ensure your website functions as intended within your cPanel hosting environment.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[5,117],"tags":[],"class_list":["post-2001","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-cpanel-ftp-file-manager","no-post-thumbnail"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.7 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Move a Website from Subfolder to Base Domain in cPanel?<\/title>\n<meta name=\"description\" content=\"Migrate Your Website: Our guide details how to move a website from a subfolder to base domain in cPanel for a seamless transition.\" \/>\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.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Complete guide to shifting your site from subfolder to root domain in cPanel\" \/>\n<meta property=\"og:description\" content=\"Migrate Your Website: Our guide details how to move a website from a subfolder to base domain in cPanel for a seamless transition.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudHostGeek Help Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BigCloudyHosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-02T13:03:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-05T10:49:05+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bigcloudypvtltd\" \/>\n<meta name=\"twitter:site\" content=\"@bigcloudypvtltd\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Move a Website from Subfolder to Base Domain in cPanel?","description":"Migrate Your Website: Our guide details how to move a website from a subfolder to base domain in cPanel for a seamless transition.","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.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/","og_locale":"en_US","og_type":"article","og_title":"Complete guide to shifting your site from subfolder to root domain in cPanel","og_description":"Migrate Your Website: Our guide details how to move a website from a subfolder to base domain in cPanel for a seamless transition.","og_url":"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/","og_site_name":"CloudHostGeek Help Center","article_publisher":"https:\/\/www.facebook.com\/BigCloudyHosting\/","article_published_time":"2024-06-02T13:03:28+00:00","article_modified_time":"2025-11-05T10:49:05+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@bigcloudypvtltd","twitter_site":"@bigcloudypvtltd","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/#article","isPartOf":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/"},"author":{"name":"admin","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/person\/378209d3259734d846716786afbc52b0"},"headline":"Complete guide to shifting your site from subfolder to root domain in cPanel","datePublished":"2024-06-02T13:03:28+00:00","dateModified":"2025-11-05T10:49:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/"},"wordCount":305,"publisher":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization"},"articleSection":["cPanel","cPanel FTP \/ File Manager"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/","name":"How to Move a Website from Subfolder to Base Domain in cPanel?","isPartOf":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website"},"datePublished":"2024-06-02T13:03:28+00:00","dateModified":"2025-11-05T10:49:05+00:00","description":"Migrate Your Website: Our guide details how to move a website from a subfolder to base domain in cPanel for a seamless transition.","breadcrumb":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/move-a-website-from-subfolder-to-base-domain\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bigcloudy.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Complete guide to shifting your site from subfolder to root domain in cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","name":"https:\/\/www.bigcloudy.com\/","description":"Your step-by-step guide to hosting, servers &amp; website tools.","publisher":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bigcloudy.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization","name":"BigCloudy internt services pvt ltd.","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","contentUrl":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","width":368,"height":114,"caption":"BigCloudy internt services pvt ltd."},"image":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/BigCloudyHosting\/","https:\/\/x.com\/bigcloudypvtltd","https:\/\/www.instagram.com\/bigcloudypvtltd\/"]},{"@type":"Person","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/person\/378209d3259734d846716786afbc52b0","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/42ea90e921e5926f1db3403e79195ea7c0e898504fd43555e6099a85c9c91443?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/42ea90e921e5926f1db3403e79195ea7c0e898504fd43555e6099a85c9c91443?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/kb.cloudhostgeek.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=2001"}],"version-history":[{"count":0,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2001\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=2001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=2001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=2001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}