{"id":51583,"date":"2015-08-10T02:04:40","date_gmt":"2015-08-10T06:04:40","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=51583"},"modified":"2016-02-17T05:53:08","modified_gmt":"2016-02-17T10:53:08","slug":"opencart-2-x-how-to-move-the-website-from-sub-folder-to-the-root","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-2-x-how-to-move-the-website-from-sub-folder-to-the-root.html","title":{"rendered":"OpenCart 2.x. How to move the website from sub-folder to the root"},"content":{"rendered":"<p>\r\n<p>This tutorial shows you how to move OpenCart 2.x. installation from the sub-directory to the root.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Ks-rRVXBtdE?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to move the website from sub-folder to the root<\/a><\/p>\r\n<p>The following steps should be performed in order to trasnfer the site to the root directory:<\/p>\r\n<ol>\r\n<li>\r\n<p>First, open server files  and<strong> locate the subfolder with the current installation<\/strong>. That is &#8216;test&#8217; in our case. <\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>Back up the files<\/strong>. Keep the .zip file somewhere in your computer, it can be used to restore the original website in case it is reuqired. <\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>Transfer the content of the subfolder to the root<\/strong> directory. Use  drag-and-drop tool in your FTP client for this. Once the transfer is completed  you can <strong>delete the subfolder <\/strong>as it is not going to be used further. <\/p>\r\n<\/li>\r\n<li>\r\n<p>Next, edit <strong>config.php<\/strong> file from the root of installation. Use any  available <strong>HTML editor <\/strong>for that. <strong>Remove all the references of the subfolder<\/strong> from  the site link &#8211; \\test. Make sure that lines are <strong>ended up with &#8216; \/ &#8216; symbol<\/strong>: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/08\/OpenCart_2_Moving_from_subfolder_to_root_1.gif\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/08\/OpenCart_2_Moving_from_subfolder_to_root_1-300x228.gif\" alt=\"OpenCart_2_Moving_from_subfolder_to_root_1\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-51584\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/OpenCart_2_Moving_from_subfolder_to_root_1-300x228.gif 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/OpenCart_2_Moving_from_subfolder_to_root_1-150x114.gif 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<li>\r\n<p>Then open<strong> &#8216;admin&#8217;<\/strong> folder in the new  installation root and edit<strong> config.php <\/strong>file from there. Use the same HTML editor  for that. Remove all the references to the subfolder from the site link &#8211; \\test  within entire file. Make sure that lines are ended up with \/ symbol. <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/08\/OpenCart_2_Moving_from_subfolder_to_root_2.gif\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/08\/OpenCart_2_Moving_from_subfolder_to_root_2-300x228.gif\" alt=\"OpenCart_2_Moving_from_subfolder_to_root_2\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-51585\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/OpenCart_2_Moving_from_subfolder_to_root_2-300x228.gif 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/OpenCart_2_Moving_from_subfolder_to_root_2-150x114.gif 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Save changes once done editing. Now check the  new site&#8217;s URL. The website will appear under the root direction properly. <\/p>\r\n<\/li>\r\n<\/ol>\r\n<p class=\"info-box\">Note: only sever files are to be used, the Database should not be modified.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Ks-rRVXBtdE?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to move the website from sub-folder to the root<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows you how to move OpenCart 2.x. installation from the sub-directory to the root.<\/p>\n","protected":false},"author":66,"featured_media":51812,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[1188,1157,922,1256],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/51583"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=51583"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/51583\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/51812"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=51583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=51583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=51583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}