{"id":2585,"date":"2013-04-03T17:35:01","date_gmt":"2013-04-03T17:35:01","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/04\/03\/329-move-folders\/"},"modified":"2023-07-07T16:34:29","modified_gmt":"2023-07-07T20:34:29","slug":"move-wordpress-folders","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/","title":{"rendered":"How to Move WordPress from a Subfolder to the Root Directory"},"content":{"rendered":"<p><center><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/ZQL31otQroQ\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><\/center><\/p>\n<p>Many people like to create and test a new version of their site in a subfolder so that it does not affect their main domain. Once completed, they will want to migrate the new site over to the root directory for the domain. This is very common with WordPress. Follow the instructions below as we guide you on how to <strong>move WordPress<\/strong> from a Subfolder to the Root Directory.<\/p>\n<h2>Make a Backup of your account<\/h2>\n<p>Before performing the following procedure, it is a good idea to make a backup of your account prior to making any changes. Learn how to make a backup here: <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/cpanel-backups\/\" target=\"_blank\" rel=\"noopener noreferrer\">Backup website files in cPanel<\/a>.<\/p>\n<h2>Prepare your WordPress installation for the move<\/h2>\n<p>Prior to physically moving the files, you will need to prepare the installation to accept the new URL name.<\/p>\n<ol class=\"article_list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/logging-into-wordpress-dashboard\/\">Log into your WordPress Dashboard<\/a>. For example.<\/li>\n<li>From the main dashboard, go to <strong>Administration -&gt; Settings -&gt; General<\/strong>.<\/li>\n<li>Next, look for the <strong>WordPress address (URI):<\/strong> and change it from (example.com\/WordPress to example.com)<\/li>\n<li>Lastly, look for the <strong>Site Address address (URL):<\/strong> and change it from (example.com\/WordPress to example.com)<\/li>\n<\/ol>\n<h2>Moving your WordPress from a subfolder to your main folder<\/h2>\n<p>After you have made your backup, removed the site files from the builder, and prepared your WordPress files, it is time to move your WordPress to the primary folder.<\/p>\n<ol class=\"article_list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\">Log into your cPanel admin dashboard<\/a>.<\/li>\n<li>From the main cPanel area, look for the <em>Files<\/em> category and then click on the <strong>File Manager<\/strong> tool. Go to <strong>Settings<\/strong> In the <strong>Preferences<\/strong> window that appears, select the checkbox entitled <strong>Show Hidden Files<\/strong>.<\/li>\n<li>Once inside the <em>File Manager<\/em>, you will want to navigate to the folder you have the WordPress site in. For example, a folder named <strong>WordPress<\/strong>.<\/li>\n<li>You will see a list of all the WordPress files and folders in the right hand panel. Highlight them all and click on the <strong>Copy<\/strong> icon from the menu toolbar across the top of the page.<\/li>\n<li>A popup will appear so you can enter the destination folder. Continuing with our WordPress folder example, it should show as <em>public_html\/WordPress<\/em>. Remove the <em>\/WordPress<\/em> from the destination path so that it simply displays as <em>public_html<\/em>. Click the <strong>Copy Files<\/strong> button.<\/li>\n<li>This will copy the files up to the <em>public_html<\/em> folder. Use the <em>File Manager<\/em> to navigate back to the <em>public_html<\/em> folder. (You can do this by clicking on the <strong>Up One Level<\/strong> button from the toolbar across the top of the right hand panel.)<\/li>\n<li>You should now see the same files as you have in your <strong>WordPress<\/strong> folder.<\/li>\n<li>You can now delete the old <strong>WordPress<\/strong> folder.<\/li>\n<\/ol>\n<h2>Log in and finish the URL details<\/h2>\n<ol class=\"article_list\">\n<li>Log into your NEW WordPress admin dashboard. For example (<em>example.com\/wp-admin<\/em> or <em>example.com\/wp-login.php<\/em>)<\/li>\n<li>Go to <em>Administration -&gt; Settings -&gt; Permalinks<\/em> and ensure the link structure is the same as your new URL.<\/li>\n<\/ol>\n<p>Are you interested in unleashing the power of WordPress? Our managed platform for WordPress is fine-tuned to deliver superior performance, security, and provide best-in-class hosting. Be sure to check out our <a title=\"Click here to navigate to our main website and review our available WordPress hosting plans.\" href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress hosting<\/a> plans.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many people like to create and test a new version of their site in a subfolder so that it does not affect their main domain. Once completed, they will want to migrate the new site over to the root directory for the domain. This is very common with WordPress. Follow the instructions below as we<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/\"> 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":[4325,56],"tags":[],"class_list":["post-2585","post","type-post","status-publish","format-standard","hentry","category-wordpress-hosting","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Move WordPress to the Root Directory | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to move your WordPress from a sub-folder to your root folder.\" \/>\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\/edu\/wordpress\/move-wordpress-folders\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Move WordPress to the Root Directory | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how to move your WordPress from a sub-folder to your root folder.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/\" \/>\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-03T17:35:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-07T20:34:29+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\/edu\/wordpress\/move-wordpress-folders\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/\"},\"author\":{\"name\":\"Scott Mitchell\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\"},\"headline\":\"How to Move WordPress from a Subfolder to the Root Directory\",\"datePublished\":\"2013-04-03T17:35:01+00:00\",\"dateModified\":\"2023-07-07T20:34:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/\"},\"wordCount\":532,\"commentCount\":124,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"WordPress Hosting\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/\",\"name\":\"How to Move WordPress to the Root Directory | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-04-03T17:35:01+00:00\",\"dateModified\":\"2023-07-07T20:34:29+00:00\",\"description\":\"Learn how to move your WordPress from a sub-folder to your root folder.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Move WordPress from a Subfolder to the Root Directory\"}]},{\"@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":"How to Move WordPress to the Root Directory | InMotion Hosting","description":"Learn how to move your WordPress from a sub-folder to your root folder.","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\/edu\/wordpress\/move-wordpress-folders\/","og_locale":"en_US","og_type":"article","og_title":"How to Move WordPress to the Root Directory | InMotion Hosting","og_description":"Learn how to move your WordPress from a sub-folder to your root folder.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-04-03T17:35:01+00:00","article_modified_time":"2023-07-07T20:34:29+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\/edu\/wordpress\/move-wordpress-folders\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/"},"author":{"name":"Scott Mitchell","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed"},"headline":"How to Move WordPress from a Subfolder to the Root Directory","datePublished":"2013-04-03T17:35:01+00:00","dateModified":"2023-07-07T20:34:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/"},"wordCount":532,"commentCount":124,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["WordPress Hosting","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/","name":"How to Move WordPress to the Root Directory | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-04-03T17:35:01+00:00","dateModified":"2023-07-07T20:34:29+00:00","description":"Learn how to move your WordPress from a sub-folder to your root folder.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/move-wordpress-folders\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Move WordPress from a Subfolder to the Root Directory"}]},{"@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":56,"name":"WordPress Tutorials","slug":"wordpress","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2585","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=2585"}],"version-history":[{"count":6,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2585\/revisions"}],"predecessor-version":[{"id":105562,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2585\/revisions\/105562"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=2585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=2585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=2585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}