{"id":2577,"date":"2013-04-02T19:16:03","date_gmt":"2013-04-02T19:16:03","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/04\/02\/move-site-files\/"},"modified":"2021-08-16T23:15:28","modified_gmt":"2021-08-17T03:15:28","slug":"move-site-files","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/","title":{"rendered":"An overview on moving applications from subfolders to your root folder"},"content":{"rendered":"<p>It is a common practice to test and\/or build a new site version while maintaining the current version on the web. This way site visitors can continue to interact and the website business is not interrupted while the new content is designed or the software is tested. For this guide, we will be moving a new site, located in a folder named <em>newsite<\/em> to the root folder of a hosting account, <em>public_html<\/em>.<\/p>\n<h2>Removing the old site files<\/h2>\n<p>Simply copying the new site files over the old files may work, but it may also leave you with extraneous files and other useless code. It is best to clear out the old site completely before moving the new files in. First, use your <a href=\"\/support\/edu\/cpanel\/using-file-manager-in-cpanel\/\">cPanel File Manager<\/a> and navigate to the Web root of your account, this is known as the <em>public_html<\/em> folder. Below you can see our example account. There are a couple of folders and several files in the <em>public_html<\/em> folder.<\/p>\n<p>Be careful when removing the files and folders. You do not want to simply delete everything in the <em>public_html<\/em> folder as it would also delete the <em>newsite<\/em> folder that contains your new site information. Use the cPanel File Manager toolbar and delete each folder you do not need individually. This would be the <em>images<\/em> folder. The <em>cgi-bin<\/em> folder is standard on all accounts and should generally be left alone.<\/p>\n<p>As for the files in the <em>public_html<\/em>folder, you can delete them either individually or by highlighting them all at once. Most browsers allow this by clicking on the top file and then holding the <strong>Shift<\/strong> key while clicking the bottom file. Once highlighted, you can click the <strong>Delete<\/strong> icon from the toolbar, removing them all. Once your <em>public_html<\/em> folder is clean, you should only have the <em>cgi-bin<\/em> and the folder with your new site&#8217;s information, in our case, the <em>newsite<\/em> folder.<\/p>\n<h2>Copying the new files to the root folder<\/h2>\n<p>Once you have removed the old site files from the <em>public_html<\/em> you are ready to move the files. Using the file manager, enter the folder you have the new site files in. In our example, it is the <em>newsite<\/em> folder. From there you will see all the files and folders that are for the new site.<\/p>\n<p>To move the files and folders, you first need to highlight them all. While this can be done individually, it is best to highlight them all at once. To do so, click on the topmost file to highlight it, then scroll to the bottom of the page and highlight the last file while holding the <strong>Shift<\/strong> key. This highlights all the files.<\/p>\n<p>Next, click on the <strong>Move<\/strong> icon found in the upper menu bar of the page. A popup will appear asking for you to identify the destination of the move. Make sure the destination path is simply &#8216;<em>public_html<\/em>&#8216;. Click the <strong>Move Files<\/strong> button to begin the move.<\/p>\n<p>Your old subfolder should now be empty and all files should now be in the <em>public_html<\/em> folder. This completes the physical move of the files. You may test your site at this point, but be aware that many of the programs such as WordPress or Joomla will require configuration file changes. Each program is individual and instructions will need to be found for each respective program. Typically this is found by searching &#8216;folder configuration change&#8217; for the program.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is a common practice to test and\/or build a new site version while maintaining the current version on the web. This way site visitors can continue to interact and the website business is not interrupted while the new content is designed or the software is tested. For this guide, we will be moving a<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/\"> Read More ><\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-2577","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>An overview on moving applications from subfolders to your root folder | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"After creating a site in a subfolder or subdomain, you may need to move it to your main domain area.\" \/>\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.inmotionhosting.com\/support\/website\/move-site-files\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"An overview on moving applications from subfolders to your root folder | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"After creating a site in a subfolder or subdomain, you may need to move it to your main domain area.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-04-02T19:16:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T03:15:28+00:00\" \/>\n<meta name=\"author\" content=\"Scott Mitchell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Scott Mitchell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. 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\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/\"},\"author\":{\"name\":\"Scott Mitchell\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\"},\"headline\":\"An overview on moving applications from subfolders to your root folder\",\"datePublished\":\"2013-04-02T19:16:03+00:00\",\"dateModified\":\"2021-08-17T03:15:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/\"},\"wordCount\":582,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/\",\"name\":\"An overview on moving applications from subfolders to your root folder | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-04-02T19:16:03+00:00\",\"dateModified\":\"2021-08-17T03:15:28+00:00\",\"description\":\"After creating a site in a subfolder or subdomain, you may need to move it to your main domain area.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"An overview on moving applications from subfolders to your root folder\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\",\"name\":\"Scott Mitchell\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"An overview on moving applications from subfolders to your root folder | InMotion Hosting","description":"After creating a site in a subfolder or subdomain, you may need to move it to your main domain area.","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.inmotionhosting.com\/support\/website\/move-site-files\/","og_locale":"en_US","og_type":"article","og_title":"An overview on moving applications from subfolders to your root folder | InMotion Hosting","og_description":"After creating a site in a subfolder or subdomain, you may need to move it to your main domain area.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-04-02T19:16:03+00:00","article_modified_time":"2021-08-17T03:15:28+00:00","author":"Scott Mitchell","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Scott Mitchell","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/"},"author":{"name":"Scott Mitchell","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed"},"headline":"An overview on moving applications from subfolders to your root folder","datePublished":"2013-04-02T19:16:03+00:00","dateModified":"2021-08-17T03:15:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/"},"wordCount":582,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/","name":"An overview on moving applications from subfolders to your root folder | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-04-02T19:16:03+00:00","dateModified":"2021-08-17T03:15:28+00:00","description":"After creating a site in a subfolder or subdomain, you may need to move it to your main domain area.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/move-site-files\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"An overview on moving applications from subfolders to your root folder"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed","name":"Scott Mitchell","url":"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4288,"name":"Website","slug":"website","link":"https:\/\/www.inmotionhosting.com\/support\/website\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=2577"}],"version-history":[{"count":3,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2577\/revisions"}],"predecessor-version":[{"id":84701,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2577\/revisions\/84701"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=2577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=2577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=2577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}