{"id":719,"date":"2023-08-31T17:44:04","date_gmt":"2023-08-31T12:14:04","guid":{"rendered":"https:\/\/www.support.webeyesoft.com\/docs\/others\/move-wordpress-wp-folder-to-right-folder\/"},"modified":"2023-08-31T18:18:34","modified_gmt":"2023-08-31T12:48:34","slug":"move-wordpress-wp-folder-to-right-folder","status":"publish","type":"docs","link":"https:\/\/www.webeyesoft.com\/blog\/docs\/others\/move-wordpress-wp-folder-to-right-folder\/","title":{"rendered":"Move WordPress WP folder to right folder"},"content":{"rendered":"<p>In this tutorial, we&#8217;ll guide you through the process of transferring your WordPress website from a subfolder to the root domain&#8217;s public_html directory. This is particularly useful when you&#8217;ve initially set up your site in a subdirectory and now want to make it accessible directly from your main domain.<\/p>\n<p><strong>Step 1: Backup Your Website<\/strong> Before making any changes, it&#8217;s essential to create a backup of your entire WordPress website. This ensures you have a copy to revert to if anything goes wrong during the migration process.\u00a0<a href=\"https:\/\/www.support.webeyesoft.com\/docs\/tutorials\/how-to-create-backup-of-wordpress-to-google-drive\/\">\u00a0how to create backup of WordPress to google drive\u00a0<\/a><\/p>\n<p><strong>Step 2: Login to WordPress Admin Panel<\/strong> Access your WordPress admin panel using your login credentials.<\/p>\n<p><strong>Step 3: Update Site URL<\/strong> Navigate to the &#8220;General Settings&#8221; in the WordPress admin dashboard. Update the &#8220;Site URL&#8221; from <code>https:\/\/yourdomain.com\/wp<\/code> to <code>https:\/\/yourdomain.com<\/code>. This change ensures your website will be accessible directly from your main domain.<\/p>\n<p><a href=\"https:\/\/www.support.webeyesoft.com\/wp-content\/uploads\/2023\/08\/Siteurl.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-722\" src=\"https:\/\/www.support.webeyesoft.com\/wp-content\/uploads\/2023\/08\/Siteurl.png\" alt=\"\" width=\"1051\" height=\"507\" srcset=\"https:\/\/www.webeyesoft.com\/blog\/wp-content\/uploads\/2023\/08\/Siteurl.png 1051w, https:\/\/www.webeyesoft.com\/blog\/wp-content\/uploads\/2023\/08\/Siteurl-300x145.png 300w, https:\/\/www.webeyesoft.com\/blog\/wp-content\/uploads\/2023\/08\/Siteurl-1024x494.png 1024w, https:\/\/www.webeyesoft.com\/blog\/wp-content\/uploads\/2023\/08\/Siteurl-768x370.png 768w\" sizes=\"auto, (max-width: 1051px) 100vw, 1051px\" \/><\/a><\/p>\n<p><strong>Step 4: Access Control Panel<\/strong> Login to the control panel of your web hosting . <a href=\"https:\/\/www.support.webeyesoft.com\/docs\/direct-admin-hosting\/how-to-login-your-web-hosting-control-panel\/\">Tutorial How to Login Web hosting control panel<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 5: Open File Manager<\/strong> Locate and open the &#8220;File Manager&#8221; within your control panel. This allows you to manage the files and folders associated with your website.<\/p>\n<p><strong>Step 6: Access public_html Folder<\/strong> Inside the &#8220;File Manager,&#8221; navigate to the &#8220;public_html&#8221; folder of your main domain. This is the root directory where your website&#8217;s main files should reside.<\/p>\n<p><strong>Step 7: Open WP Folder<\/strong> Since your WordPress website is hosted within a subfolder (e.g., <code>\/wp<\/code>), you&#8217;ll need to locate and open that specific subfolder within the &#8220;public_html&#8221; directory.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 8: Move Files and Folders<\/strong> Select all the files and folders within the subfolder (WP folder) that holds your WordPress site. Once selected, use the &#8220;Move&#8221; or &#8220;Cut&#8221; option from the menu to move these files and folders.<\/p>\n<p><strong>Step 9: Paste in public_html<\/strong> Move back to the &#8220;public_html&#8221; directory, and paste the files and folders you cut earlier. This action places your WordPress site&#8217;s content directly into the root directory of your main domain.<\/p>\n<p><a href=\"https:\/\/www.support.webeyesoft.com\/wp-content\/uploads\/2023\/08\/select-all-and-move-to-public_html.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-705\" src=\"https:\/\/www.support.webeyesoft.com\/wp-content\/uploads\/2023\/08\/select-all-and-move-to-public_html.png\" alt=\"\" width=\"1333\" height=\"911\" srcset=\"https:\/\/www.webeyesoft.com\/blog\/wp-content\/uploads\/2023\/08\/select-all-and-move-to-public_html.png 1333w, https:\/\/www.webeyesoft.com\/blog\/wp-content\/uploads\/2023\/08\/select-all-and-move-to-public_html-300x205.png 300w, https:\/\/www.webeyesoft.com\/blog\/wp-content\/uploads\/2023\/08\/select-all-and-move-to-public_html-1024x700.png 1024w, https:\/\/www.webeyesoft.com\/blog\/wp-content\/uploads\/2023\/08\/select-all-and-move-to-public_html-768x525.png 768w\" sizes=\"auto, (max-width: 1333px) 100vw, 1333px\" \/><\/a><\/p>\n<p><strong>Step 10: Verify and Test<\/strong> After moving the files, double-check that everything is in place. You can then access your website by typing <code>https:\/\/yourdomain.com<\/code> into your browser&#8217;s address bar. Test various pages and functionalities to ensure everything works as expected.<\/p>\n<p>Congratulations! You&#8217;ve successfully moved your WordPress website from a subfolder to the root domain&#8217;s public_html directory. Your website is now accessible directly from your main domain.<\/p>\n<p>Please remember that this process involves manipulating important files, so proceed with caution and always keep a backup on hand.<\/p>\n","protected":false},"featured_media":0,"parent":13,"menu_order":30,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-719","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/docs\/719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/comments?post=719"}],"version-history":[{"count":3,"href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/docs\/719\/revisions"}],"predecessor-version":[{"id":723,"href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/docs\/719\/revisions\/723"}],"up":[{"embeddable":true,"href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/docs\/13"}],"prev":[{"title":"How To add Records on DNS from Control Panel","link":"https:\/\/www.webeyesoft.com\/blog\/docs\/others\/how-to-add-records-on-dns-from-control-panel\/","href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/docs\/714"}],"wp:attachment":[{"href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/media?parent=719"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.webeyesoft.com\/blog\/wp-json\/wp\/v2\/doc_tag?post=719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}